You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We noticed that our integration tests for a batch job (with many tests) were failing intermittently. After debugging, I found that JobLauncherTestUtils.launchJob was occasionally relaunching the same job instance. After looking at the code, I saw that a random number generator was being used which does not guarantee that the number generate would be unique. I believe a UUID would be more appropriate as strongly guarantees that an ID does not repeat (except in highly exceptional cases).
Uh oh!
There was an error while loading. Please reload this page.
saikatbhadra opened BATCH-2783 and commented
We noticed that our integration tests for a batch job (with many tests) were failing intermittently. After debugging, I found that JobLauncherTestUtils.launchJob was occasionally relaunching the same job instance. After looking at the code, I saw that a random number generator was being used which does not guarantee that the number generate would be unique. I believe a UUID would be more appropriate as strongly guarantees that an ID does not repeat (except in highly exceptional cases).
Pull request here: #3701
No further details from BATCH-2783
The text was updated successfully, but these errors were encountered: