-
Notifications
You must be signed in to change notification settings - Fork 247
Avoid accessing missing interfaces on other nodes #7392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
ab21fb2
2894255
27ffac0
d2402af
f0d62e0
1ff2b29
b99cbde
5547d6a
4649f76
e614cf2
5c2f9b5
a3d2e50
b0b6c99
12f5040
bfa562a
6d628f6
8312118
5c7483e
c3d6c5f
f4ba3ca
a1d9a7d
a0de42a
8cb8e27
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -276,6 +276,9 @@ namespace snapshots | |
|
|
||
| response_body = std::move(request->get_response_ptr()); | ||
| curl_easy = std::move(request->get_easy_handle_ptr()); | ||
|
|
||
| // Ignore any body from redirect responses | ||
| response_body->buffer.clear(); | ||
|
Comment on lines
+280
to
+281
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Explanation: When we make a Ideally we'd be deciding how to handle the body based on the headers, but that's awkward with curl. Perhaps we should create a fresh |
||
| } | ||
|
|
||
| while (!fetched_all) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error message 'Redirecting to primary' is misleading in the context of the
/snapshotendpoint. This message suggests redirection to the primary node, but this endpoint redirects to the current node's snapshot. Consider changing the message to something like 'Redirecting to snapshot' to accurately reflect the operation.