Skip to content

[native] Removing status message from native worker to support http/2#23653

Merged
amitkdutta merged 1 commit intoprestodb:masterfrom
amitkdutta:test2
Sep 19, 2024
Merged

[native] Removing status message from native worker to support http/2#23653
amitkdutta merged 1 commit intoprestodb:masterfrom
amitkdutta:test2

Conversation

@amitkdutta
Copy link
Contributor

@amitkdutta amitkdutta commented Sep 13, 2024

HTTP/2 does not use status message. We recently migrated to new jetty server that uses http2 (#23356). From native worker, passing status message is no op. In some cases we parse the error message and pick the first line as message. This is not necessary as status message is not used. Proxygen's RequestBuilder::status function expects status message and sets http version 1/1 hard coded. However, after discussing with proxygen folks, found that they intentially set it and proxygen does not depend on this version number, instead they use server next protocol/client next protocol.

Extensive testing is done with shadow tests, also existing e2e tests pass.

== NO RELEASE NOTE ==

@amitkdutta amitkdutta requested a review from a team as a code owner September 13, 2024 20:30
@gggrace14 gggrace14 changed the title [wip] Removing status message for airlift 2 Removing status message for airlift 2 Sep 16, 2024
gggrace14
gggrace14 previously approved these changes Sep 16, 2024
@facebook-github-bot
Copy link
Collaborator

@amitkdutta has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@amitkdutta amitkdutta changed the title Removing status message for airlift 2 [native] Removing status message from native worker to support http/2 Sep 18, 2024
@amitkdutta amitkdutta merged commit 46eacc3 into prestodb:master Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants