Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Slider 0.91
-
None
Description
The following 2 unit tests fail in certain scenario when the containers have more than 64 env variables -
TestLongLivedProcess#testSetenv
TestWorkflowForkedProcessService#testSetenv
Error msg is like -
Error Message Text "TEST-RUN-ENV-VALUE" not found in 64 lines [out] term=xterm . . Stacktrace java.lang.AssertionError: Text "TEST-RUN-ENV-VALUE" not found in 64 lines [out] term=xterm . . at org.junit.Assert.fail(Assert.java:88) at org.apache.slider.server.services.workflow.WorkflowServiceTestBase.assertStringInOutput(WorkflowServiceTestBase.java:136) at org.apache.slider.server.services.workflow.TestWorkflowForkedProcessService.testSetenv(TestWorkflowForkedProcessService.java:120) Standard Output 2017-02-01 19:54:17,303 [JUnit] DEBUG workflow.LongLivedProcess (LongLivedProcess.java:spawnChildProcess(293)) - Spawning process: "env" 2017-02-01 19:54:17,306 [testSetenv-008] DEBUG workflow.LongLivedProcess (LongLivedProcess.java:run(318)) - Lifecycle callback thread running 2017-02-01 19:54:17,306 [testSetenv-008] DEBUG workflow.ForkedProcessService (ForkedProcessService.java:onProcessStarted(174)) - Process has started 2017-02-01 19:54:17,307 [testSetenv-008] DEBUG workflow.LongLivedProcess (LongLivedProcess.java:run(331)) - process testSetenv has finished 2017-02-01 19:54:17,307 [testSetenv-007] INFO workflow.ForkedProcessService (LongLivedProcess.java:recordRecentLine(447)) - TERM=xterm . . 2017-02-01 19:54:17,346 [testSetenv-008] DEBUG workflow.ForkedProcessService (ForkedProcessService.java:onProcessExited(190)) - Process has exited with exit code 0