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:09:09 UTC
[I] [CURATOR-8] Possible mishandling of connection timeouts on large/shooty clusters [curator]
jira-importer opened a new issue, #529:
URL: https://github.com/apache/curator/issues/529
<p>See <a href="https://issues.apache.org/jira/browse/CURATOR-7" title="Session ids not preserved if EnsembleProvider has changed the ensemble" class="issue-link" data-issue-key="CURATOR-7"><del>CURATOR-7</del></a> for background.</p>
<p>ConnectionState.checkTimeouts resets the connection if the session timeout has expired, whether or not we ever had a session. If one has a large, shooty cluster with a short session timeout and a long connection timeout, this might reset the host list pointer to zero every sessionTimeoutMs, never letting it connect to a valid, available host towards the end of the list. On the other hand, if it is an assertion that sessionTimeout > connectionTimeout always, then the min() call is not required and the ifelse should read "else if (elapsed > connectionTimeoutMs)" instead of just "else". </p>
---
<details><summary><i>Originally reported by <a title="Shevek" href="https://issues.apache.org/jira/secure/ViewProfile.jspa?name=arren">arren</a>, imported from: <a href="https://issues.apache.org/jira/browse/CURATOR-8" target="_blank">Possible mishandling of connection timeouts on large/shooty clusters</a></i></summary>
<i><ul>
<li><b>assignee</b>: <a title="Jordan Zimmerman" href="https://issues.apache.org/jira/secure/ViewProfile.jspa?name=randgalt">randgalt</a>
<li><b>status</b>: Resolved
<li><b>priority</b>: Major
<li><b>resolution</b>: Fixed
<li><b>resolved</b>: 2013-09-25T04:29:12+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-8] Possible mishandling of connection timeouts on large/shooty clusters [curator]
Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #529:
URL: https://github.com/apache/curator/issues/529#issuecomment-2604691495
<i>[Originally related to: <a href="https://github.com/apache/curator/issues?q=in%3Atitle%20CURATOR-7">CURATOR-7</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-8] Possible mishandling of connection timeouts on large/shooty clusters [curator]
Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #529:
URL: https://github.com/apache/curator/issues/529#issuecomment-2604691483
<i><a href="https://issues.apache.org/jira/secure/ViewProfile.jspa?name=arren">arren</a>:</i>
<p>Tempted to say that we don't care about session timeout in that routine; if the Ensemble is responsible for updating the host list, then the client connectTimeoutMs is "The amount of time a user application allows a connection request to remain pending before delivering an Exception to the caller."</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-8] Possible mishandling of connection timeouts on large/shooty clusters [curator]
Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #529:
URL: https://github.com/apache/curator/issues/529#issuecomment-2604691479
<i><a href="https://issues.apache.org/jira/secure/ViewProfile.jspa?name=arren">arren</a>:</i>
<p>Issue made more complex by the fact that connection timeouts are handled within the ZooKeeper instance and ZK does not give a signal to the outer framework when it's exhausted its Host loop.</p>
<p>Issue made simpler by the fact that we can redeliver a changed Host set to the ZooKeeper instance whenever the Ensemble says so, and other than doing that, there's nothing we can usefully (functionally) do when the Host loop <em>is</em> exhausted except perhaps tell the user application.</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-8] Possible mishandling of connection timeouts on large/shooty clusters [curator]
Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #529:
URL: https://github.com/apache/curator/issues/529#issuecomment-2604691491
<i><a href="https://issues.apache.org/jira/secure/ViewProfile.jspa?name=randgalt">randgalt</a>:</i>
<p>Added a warning if session timeout is less than connection timeout</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