Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.6
-
None
Description
When using batchee-cli to start a batch in parallel multiple times (e.g. to have manual control over sharding) a race condition might occur when the library is to be unpacked first.
Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.batchee.cli.bootstrap.Bootstrap.main(Bootstrap.java:62) Caused by: org.apache.batchee.container.exception.BatchContainerRuntimeException: Can't create /somedir/batch/runner/batchrunner-1.5/work/customerapp-batchstandalone-war-7.3.0.0-26.war at org.apache.batchee.cli.zip.Zips.mkdir(Zips.java:85) at org.apache.batchee.cli.zip.Zips.unzip(Zips.java:39) at org.apache.batchee.cli.command.JobOperatorCommand.explode(JobOperatorCommand.java:353) at org.apache.batchee.cli.command.JobOperatorCommand.createLoader(JobOperatorCommand.java:253) at org.apache.batchee.cli.command.JobOperatorCommand.run(JobOperatorCommand.java:165) at org.apache.batchee.cli.BatchEECLI.main(BatchEECLI.java:166)