You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@jena.apache.org by "utafrali (via GitHub)" <gi...@apache.org> on 2026/04/08 21:54:24 UTC
[PR] Fix canceled federated SERVICE queries wedging dataset (GH-3837) [jena]
utafrali opened a new pull request, #3847:
URL: https://github.com/apache/jena/pull/3847
Fixes #3837
When a federated SERVICE query gets canceled, the old code still tried to drain the response body on close. This caused the HTTP client to wait for the full response even though the query was aborted, which could wedge the connection and lock up the target dataset.
The fix adds an `isAborted` check in `closeRetainedConnection()`. If the query was canceled, we just cancel the future and close the connection without trying to read the response. Otherwise, we use the original logic to drain the body before reusing the connection.
Added a test case to verify that aborted queries don't hang on close.
--
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: pr-unsubscribe@jena.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@jena.apache.org
For additional commands, e-mail: pr-help@jena.apache.org
Re: [PR] Fix canceled federated SERVICE queries wedging dataset (GH-3837) [jena]
Posted by "utafrali (via GitHub)" <gi...@apache.org>.
utafrali closed pull request #3847: Fix canceled federated SERVICE queries wedging dataset (GH-3837)
URL: https://github.com/apache/jena/pull/3847
--
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: pr-unsubscribe@jena.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@jena.apache.org
For additional commands, e-mail: pr-help@jena.apache.org
Re: [PR] Fix canceled federated SERVICE queries wedging dataset (GH-3837) [jena]
Posted by "utafrali (via GitHub)" <gi...@apache.org>.
utafrali commented on PR #3847:
URL: https://github.com/apache/jena/pull/3847#issuecomment-4220047876
gonna close this for now, doesn't seem like it's needed anymore
--
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: pr-unsubscribe@jena.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@jena.apache.org
For additional commands, e-mail: pr-help@jena.apache.org