Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1091

Shutdown thread pools in test cases

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.2
    • 3.4
    • None
    • Linux, JDK 7

    Description

      The tests, in for example org.apache.commons.lang3.builder.ToStringStyleConcurrencyTest, create thread pools which are not shut down properly, leading to idle worker threads that can prevent the JVM from shutting down properly.

      Suggested fix: shutdown() on the thread pool where a call to shutdown or shutdownNow is missing.

      Affected classes (these were the ones I could find easily, I may have missed some):

      • org.apache.commons.lang3.builder.ReflectionToStringStyleConcurrencyTest
      • org.apache.commons.lang3.builder.ToStringStyleConcurrencyTest
      • org.apache.commons.lang3.concurrent.CallableBackgroundInitializerTest

      Attachments

        Activity

          People

            britter Benedikt Ritter
            joqvist Jesper Öqvist
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified