[ 
https://issues.apache.org/jira/browse/CURATOR-557?focusedWorklogId=377861&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-377861
 ]

ASF GitHub Bot logged work on CURATOR-557:
------------------------------------------

                Author: ASF GitHub Bot
            Created on: 27/Jan/20 21:37
            Start Date: 27/Jan/20 21:37
    Worklog Time Spent: 10m 
      Work Description: shayshim commented on pull request #343: [CURATOR-557] 
ServiceCacheImpl does not close ExecutorService
URL: https://github.com/apache/curator/pull/343#discussion_r371471375
 
 

 ##########
 File path: 
curator-x-discovery/src/main/java/org/apache/curator/x/discovery/details/ServiceProviderBuilderImpl.java
 ##########
 @@ -102,4 +105,18 @@
         filters.add(filter);
         return this;
     }
+
 
 Review comment:
   Now that you added these 2 methods, you should update method 
`threadFactory(...)` to nullify `this.executorService`..
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 377861)
    Time Spent: 50m  (was: 40m)

> ServiceCacheImpl does not close ExecutorService
> -----------------------------------------------
>
>                 Key: CURATOR-557
>                 URL: https://issues.apache.org/jira/browse/CURATOR-557
>             Project: Apache Curator
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.2.0
>            Reporter: Roelof Naude
>            Priority: Major
>         Attachments: CURATOR-557.patch
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> 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.
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to