JBehave
  1. JBehave
  2. JBEHAVE-943

ExecutorService not shutdown if doIgnoreFailureInView is set to false

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.7.5
    • Fix Version/s: 3.9
    • Component/s: Core
    • Labels:
      None
    • Environment:
      Windows 7 x64
    • Number of attachments :
      0

      Description

      Overview:

      The executor service in Embedder.java is not shutdown() if doIgnoreFailureInView is set to true. This leads to a thread leak.

      Technical:

      See the finally block in Embedder.java runStoriesAsPaths().
      The shutdownExecutorService() is called only if generateReportsView() runs successfully without throwing an exception. However if doIgnoreFailureInView is set to false (which is by default) then generateReportsView() throws a RunningStoriesFailed RuntimeException.

        Activity

        In-Hwan Kim made changes -
        Field Original Value New Value
        Summary ExecutorService not shutdown if doIgnoreFailureInView is not set to true ExecutorService not shutdown if doIgnoreFailureInView is set to false
        Mauro Talevi made changes -
        Fix Version/s 3.9 [ 19035 ]
        Mauro Talevi made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            In-Hwan Kim
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: