LIVY-1062: Handle HTTP 307 redirects for POST/DELETE in LivyConnection - #535
Closed
nileshrathi345 wants to merge 1 commit into
Closed
LIVY-1062: Handle HTTP 307 redirects for POST/DELETE in LivyConnection#535nileshrathi345 wants to merge 1 commit into
nileshrathi345 wants to merge 1 commit into
Conversation
nileshrathi345
force-pushed
the
master_LIVY-1062
branch
from
July 29, 2026 04:59
fe9d07b to
f912a8e
Compare
nileshrathi345
force-pushed
the
master_LIVY-1062
branch
from
July 29, 2026 05:02
f912a8e to
cdf6e0d
Compare
Contributor
Author
|
Closing PR as this is more likely related to HA part which is not supported yet. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Handle HTTP 307 Temporary Redirect in
LivyConnection.sendRequest()so the Java HTTP client (client-http) retries POST, DELETE, and multipart requests to theLocationURL instead of failing withIOException: Temporary Redirect.Apache HttpClient follows redirects automatically for GET, but not for non-idempotent methods.
LivyConnection.sendRequest()previously treated any non-200 response as fatal, so POST/DELETE/multipart calls failed whenever the server returned 307.Also validates that
Locationis present/non-empty and consumes the redirect response entity before retry.JIRA: LIVY-1062
How was this patch tested?
Unit tests in
LivyConnectionSpec:X-Requested-By), body, and response type are preserved.Location, redirect loop, non-redirect 404.Was this patch authored or co-authored using generative AI tooling?
Yes, this was co-authored using Cursor to write the new test cases.
Generated-by: Cursor Composer, Cursor 3.13.21