Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-5444

SpawnedProcess.complete may fail to destroy the process when a timeout is specified

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.9.1.0
    • Fix Version/s: 10.8.2.2, 10.9.1.0
    • Component/s: Test
    • Labels:
      None

      Description

      The logic in SpawnedProcess has a weakness that may result in the wrapped process not being destroyed if the destroy variable is false and a timeout is specified.
      The problem is that the while condition will shortcut the if condition in the catch clause (where destroy is set to true if the timeout is exceeded).

        Attachments

        1. derby-5444-1a-destroy_on_timeout.diff
          4 kB
          Kristian Waagan
        2. derby-5444-1b-destroy_on_timeout.diff
          4 kB
          Kristian Waagan
        3. derby-5444-1c-destroy_on_timeout.diff
          2 kB
          Kristian Waagan

          Activity

            People

            • Assignee:
              kristwaa Kristian Waagan
              Reporter:
              kristwaa Kristian Waagan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: