Uploaded image for project: 'Apache Curator'
  1. Apache Curator
  2. CURATOR-557

ServiceCacheImpl does not close ExecutorService

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.2.0
    • TBD
    • Framework
    • None

    Description

      ServiceCacheImpl does not close the ExecutorService instance created from the ThreadFactory:

      https://github.com/apache/curator/blob/master/curator-x-discovery/src/main/java/org/apache/curator/x/discovery/details/ServiceCacheImpl.java#L64

       

      CloseableExecutorService::CloseableExecutorService(ExecutorService) call this(executorService, false) which sets shutdownOnClose to false.

       

      this has an impact from callers, eg ServiceProviderImpl, which only allow only a ThreadFactory to be specified.

       

       

      Attachments

        1. CURATOR-557.patch
          9 kB
          Roelof Naude

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rnaude Roelof Naude
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 40m
                  2h 40m