Skip to content
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

rgw: set correct requestId and hostId on s3select error #56864

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

clwluvw
Copy link
Contributor

@clwluvw clwluvw commented Apr 12, 2024

Previously, these fields remained constant despite the possibility of populating them with appropriate values.

Fixes: https://tracker.ceph.com/issues/65468

Previously, these fields remained constant despite the possibility of populating them with appropriate values.

Fixes: https://tracker.ceph.com/issues/65468
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
@clwluvw clwluvw requested a review from a team as a code owner April 12, 2024 18:52
@github-actions github-actions bot added the rgw label Apr 12, 2024
@cbodley
Copy link
Contributor

cbodley commented May 2, 2024

@galsalomon66 could you please help with review

@galsalomon66
Copy link
Contributor

Hi @clwluvw
please review #56834 (it fixes issues related to broken-connection. open BZ's for 7.1)

your changes could be applied on top of that PR.
is that OK?

@@ -246,8 +245,9 @@ void aws_response_handler::send_error_response_rgw_formatter(const char* error_c
s->formatter->open_object_section("Error");
s->formatter->dump_string("Code", error_code);
s->formatter->dump_string("Message", error_message);
s->formatter->dump_string("Resource", "#Resource#");
s->formatter->dump_string("RequestId", resource_id);
if (!s->trans_id.empty())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -429,7 +429,7 @@ int RGWSelectObj_ObjStore_S3::run_s3select_on_csv(const char* query, const char*

if (s3select_syntax.get_error_description().empty() == false) {
//error-flow (syntax-error)
m_aws_response_handler.send_error_response_rgw_formatter(s3select_syntax_error,s3select_syntax.get_error_description().c_str(),s3select_resource_id);
m_aws_response_handler.send_error_response_rgw_formatter(s3select_syntax_error,s3select_syntax.get_error_description().c_str());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please review #56834
this part was changed.
your changes could easily applied to that PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants