Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
1.2.0
Description
The fix for #83 made it so that if an WU has no stateID, it falls back to looking at the state string to determine the WUState. This exposed a bug in the state map:
WuStateNameMap.put("COMPILING", WUState.COMPILED);
That should say "COMPILING". This results in the following exception:
org.hpcc.HIPIE.utils.ECLPackage@6c17c0f8 Monitoring WU W20170831-154135(hipie-junit-run-ecl) to completion. 2017-08-31 15:41:40 ERROR HPCCConnection:1197 - Error running WUID: W20170831-154135 2017-08-31 19:41:37 GMT: Cannot submit the workunit. Workunit state is 'compiling'. java.lang.Exception: Error running WUID: W20170831-154135 2017-08-31 19:41:37 GMT: Cannot submit the workunit. Workunit state is 'compiling'. at org.hpccsystems.ws.client.HPCCWsWorkUnitsClient.throwWsWUExceptions(HPCCWsWorkUnitsClient.java:1859) at org.hpccsystems.ws.client.HPCCWsWorkUnitsClient.createAndRunWUFromECL(HPCCWsWorkUnitsClient.java:1671) at org.hpccsystems.ws.client.HPCCWsWorkUnitsClient.createAndRunWUFromECLAndGetWUID(HPCCWsWorkUnitsClient.java:1722) at org.hpcc.HIPIE.utils.HPCCConnection.runECLPackage(HPCCConnection.java:1193) at org.hpcc.HIPIE.utils.BaseHPCCConnectionTest.testRunEclAction(BaseHPCCConnectionTest.java:100)
The fix I would submit would just update the map, but really it should just use WUState.valueOf() with a fallback to UNKNOWN.