Uploaded image for project: 'Slider'
  1. Slider
  2. SLIDER-1200

TestLongLivedProcess#testSetenv and TestWorkflowForkedProcessService#testSetenv fail in certain scenarios

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Slider 0.91
    • Fix Version/s: Slider 0.92
    • Component/s: test
    • Labels:
      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
      

        Attachments

          Activity

            People

            • Assignee:
              gsaha Gour Saha
              Reporter:
              gsaha Gour Saha
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: