Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1558

Unit Tests do not propertly shutdown the repository, causing a large number of live threads

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Because there are unit tests that don't properly shutdown the repository after they finish (e.g. JcrTckTest, ModeShapeTckTest), a large number of threads may "add up" while running the unit tests, due to the fact that their executor services haven't been shut down.

      This can be easily observed by running the tests from the modehshape-jcr module and monitoring the JVM in parallel (with jConsole or VisualVM).

      The effects can be poor performance or even memory issues (especially when indexing via Lucene)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  hchiorean Horia Chiorean
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: