You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@curator.apache.org by "jira-importer (via GitHub)" <gi...@apache.org> on 2025/01/21 13:10:35 UTC
[I] [CURATOR-27] PathChildrenCache creates but doesn't shut down Executors [curator]
jira-importer opened a new issue, #548:
URL: https://github.com/apache/curator/issues/548
<p>After the introduction of the CloseableExecutorService (see <a href="https://issues.apache.org/jira/browse/CURATOR-17" title="PathChildrenCache closes it's executor always" class="issue-link" data-issue-key="CURATOR-17"><del>CURATOR-17</del></a>) the PathChildrenCache may create Executor services that it doesn't close.</p>
<p>Ideally, the CloseableExecutorService should accept a parameter that specifies if the executor needs to be shutdown on close. Recipes that create their own ExecutorService should set this parameter to true. When an executor not directly managed by the recipe is used, the flag should be just false, so that the the executor doesn't always close (satisfy <a href="https://issues.apache.org/jira/browse/CURATOR-17" title="PathChildrenCache closes it's executor always" class="issue-link" data-issue-key="CURATOR-17"><del>CURATOR-17</del></a>).</p>
---
<details><summary><i>Originally reported by <a title="Ioannis Canellos" href="https://issues.apache.org/jira/secure/ViewProfile.jspa?name=iocanel">iocanel</a>, imported from: <a href="https://issues.apache.org/jira/browse/CURATOR-27" target="_blank">PathChildrenCache creates but doesn't shut down Executors</a></i></summary>
<i><ul>
<li><b>assignee</b>: <a title="Ioannis Canellos" href="https://issues.apache.org/jira/secure/ViewProfile.jspa?name=iocanel">iocanel</a>
<li><b>status</b>: Resolved
<li><b>priority</b>: Major
<li><b>resolution</b>: Fixed
<li><b>resolved</b>: 2013-10-06T15:54:06+01:00
<li><b>imported</b>: 2025-01-21
</ul></i>
</details>
--
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.
To unsubscribe, e-mail: dev-unsubscribe@curator.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [CURATOR-27] PathChildrenCache creates but doesn't shut down Executors [curator]
Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #548:
URL: https://github.com/apache/curator/issues/548#issuecomment-2604694446
<i><a href="https://issues.apache.org/jira/secure/ViewProfile.jspa?name=randgalt">randgalt</a>:</i>
<p>It will be prepared next week and will be out by the following week.</p>
--
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.
To unsubscribe, e-mail: dev-unsubscribe@curator.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [CURATOR-27] PathChildrenCache creates but doesn't shut down Executors [curator]
Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #548:
URL: https://github.com/apache/curator/issues/548#issuecomment-2604694433
<i><a href="https://issues.apache.org/jira/secure/ViewProfile.jspa?name=randgalt">randgalt</a>:</i>
<p>Comments on the patch:</p>
<ul>
<li>I usually use executorService.shutdownNow() instead of executorService.shutdown(). If shutdown is being called it usually means executing tasks shouldn't complete but instead be interrupted. Thoughts?</li>
</ul>
<ul>
<li>nitpick: referencing instance fields via "this." is unnecessary and confusing.</li>
</ul>
<ul>
<li>PathChildrenCache line 144 - why isn't "true" passed for shutdown in CloseableExecutorService?</li>
</ul>
<ul>
<li>Looks like the pom change to exclude IDEA files got merged into this patch. It shouldn't be.</li>
</ul>
--
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.
To unsubscribe, e-mail: dev-unsubscribe@curator.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [CURATOR-27] PathChildrenCache creates but doesn't shut down Executors [curator]
Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #548:
URL: https://github.com/apache/curator/issues/548#issuecomment-2604694442
<i><a href="https://issues.apache.org/jira/secure/ViewProfile.jspa?name=cmorelli">cmorelli</a>:</i>
<p>What's the status on a 2.3.0 release (or snapsho)? Is it possible to back port this onto the existing 2.2.0-incubating? Or, is there an easy workaround without modifying source that could work temporarily?</p>
--
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.
To unsubscribe, e-mail: dev-unsubscribe@curator.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [CURATOR-27] PathChildrenCache creates but doesn't shut down Executors [curator]
Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #548:
URL: https://github.com/apache/curator/issues/548#issuecomment-2604694439
<i><a href="https://issues.apache.org/jira/secure/ViewProfile.jspa?name=iocanel">iocanel</a>:</i>
<p>Aligned LeaderSelector</p>
--
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.
To unsubscribe, e-mail: dev-unsubscribe@curator.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [CURATOR-27] PathChildrenCache creates but doesn't shut down Executors [curator]
Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #548:
URL: https://github.com/apache/curator/issues/548#issuecomment-2604694437
<i><a href="https://issues.apache.org/jira/secure/ViewProfile.jspa?name=iocanel">iocanel</a>:</i>
<p>Reopening the issue, as it seems that the LeaderSelector is affected by the changes in the CloseableExecutorService.</p>
<p>We should align the LeaderSelector with the changes introduced.</p>
--
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.
To unsubscribe, e-mail: dev-unsubscribe@curator.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [CURATOR-27] PathChildrenCache creates but doesn't shut down Executors [curator]
Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #548:
URL: https://github.com/apache/curator/issues/548#issuecomment-2604694457
<i>[Originally duplicated by: <a href="https://github.com/apache/curator/issues?q=in%3Atitle%20CURATOR-39">CURATOR-39</a>]</i>
--
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.
To unsubscribe, e-mail: dev-unsubscribe@curator.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [CURATOR-27] PathChildrenCache creates but doesn't shut down Executors [curator]
Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #548:
URL: https://github.com/apache/curator/issues/548#issuecomment-2604694464
<i>[Originally duplicated by: <a href="https://github.com/apache/curator/issues?q=in%3Atitle%20CURATOR-66">CURATOR-66</a>]</i>
--
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.
To unsubscribe, e-mail: dev-unsubscribe@curator.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org