[MODEXPW-264] "A job execution for this job is already running" error bulk uploading user barcodes on multiple parallel large bulk edit jobs Created: 05/Oct/22  Updated: 09/Feb/23  Resolved: 02/Nov/22

Status: Closed
Project: mod-data-export-worker
Components: None
Affects versions: None
Fix versions: None

Type: Bug Priority: TBD
Reporter: Olga Kondratenko Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified
Environment:

https://ptf-rmb.int.aws.folio.org/(lcp2)


Attachments: File 10k-user-barcodes1.csv     File A job execution for this job is already running.csv     File java.lang.ArrayIndexOutOfBoundsException.csv    
Issue links:
Cloners
is cloned by MODEXPW-306 [Bulk edit] Index 798 out of bounds f... Closed
Relates
relates to UXPROD-3842 Bulk edit - architectural improvements Closed
Sprint:
Development Team: Firebird
Release: Orchid (R1 2023)
RCA Group: TBD

 Description   

Overview:
Log into https://ptf-rmb.int.aws.folio.org/ as a User with  "Bulk Edit: In app – View", and "Bulk Edit: In app – Edit" permissions. 
*5 Users upload a .csv file with a large amount (5.000 or 10.000) "user barcodes" and start Bulk editing. + 5 users upload files with a large amount (5.000 or 10.000) "item barcodes" and start Bulk editing - 10 jobs total
**Bulk edit failed.
{}{}{}{}{}{}BE side reports the issue: *ERROR BulkEditController A job execution for this job is already running
The issue reproduced from time to time with large data set of 5 parallel jobs

Steps to Reproduce:

  1. Navigate for 10 users to the Bulk edit app => Select Users App => Select " User barcode" from "Records identifier" dropdown
  2. Upload 5 .csv files with "User barcodes" like 10k-user-barcodes1.csv and 5 .csv files with "Item barcodes" by dragging it on the Drag & drop area for 10 Bulk edits simultaneously.
  3. Wait for the user's barcodes to be uploaded

Expected Results:

1. The user's barcodes are uploaded

Actual Results:

The Bulk edit is failed

The user's barcodes could be not uploaded
Additional Information:
URL: https://ptf-rmb.int.aws.folio.org/ 

The "Export manager" shows the job with the status "Successful" or "FAILED"
A job execution for this job is already running.csv:
09:31:06 [514666/bulk-edit] [fs09000000] [9eb67301-6f6e-468f-9b1a-6134dc39a684] [mod-data-export-worker] ERROR BulkEditController   A job execution for this job is already running: JobExecution: id=2166, version=1, startTime=2022-10-04 09:31:00.746, endTime=null, lastUpdated=2022-10-04 09:31:00.746, status=STARTED, exitStatus=exitCode=UNKNOWN;exitDescription=, job=[JobInstance: id=2166, version=0, Job=[BULK_EDIT_IDENTIFIERS-USER]], jobParameters=[

{jobId=97ff5516-fa02-4fd9-94dc-51ea94307794, fileName=mod-data-export-worker/bulk_edit/10k-user-barcodes1.csv, exportType=BULK_EDIT_IDENTIFIERS, entityType=USER, tempOutputFilePath=mod-data-export-worker/bulk_edit/2022-10-04-Matched-Records-10k-user-barcodes1, identifierType=BARCODE, totalCsvLines=10000}

]

Only for BULK_EDIT_IDENTIFIERS, and when running multiple jobs, from time to time it happens that it tries to start the job that already running. 

Some of the jobs still can be completed Successfully or FAILED jobs could be a different not related issue as well:

FAILED jobs have 
The "Export manager" Error details
"Index 798 out of bounds for length 13 (java.lang.ArrayIndexOutOfBoundsException.csv)" or "null (ArrayIndexOutOfBoundsException)"



 Comments   
Comment by Ann-Marie Breaux (Inactive) [ 06/Oct/22 ]

Hi Magda Zacharska This bug showed up in the list of ones with no dev team. I added Firebird, but please adjust if that is not correct. Thank you!

Comment by Magda Zacharska [ 07/Oct/22 ]

To be reviewed once UXPROD-3842 Closed is done

Comment by Magda Zacharska [ 02/Nov/22 ]

The issue is not reproducible with Nolana code

Generated at Thu Feb 08 22:30:49 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.