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

[native] Prepare for the exchange protocol upgrade #21995

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

Yuhta
Copy link
Contributor

@Yuhta Yuhta commented Feb 23, 2024

This is the change needed on presto_cpp side to implement the new exchange protocol. Implement ExchangeSource::getDataSizes and use it when the header X-Presto-Get-Data-Size exists (will be removed in the future once coordinator support the HEAD calls), or the endpoint is called with HTTP HEAD method.

All changes here are backward-compatible. The new protocol will not be used until we start calling getDataSizes on velox side in ExchangeClient.

See #21926 for details about design of the new protocol.

Also added new runtime stats numTopOutputBuffers.

@Yuhta
Copy link
Contributor Author

Yuhta commented Feb 23, 2024

@Yuhta Yuhta marked this pull request as ready for review February 23, 2024 20:47
@Yuhta Yuhta requested a review from a team as a code owner February 23, 2024 20:47
mbasmanova
mbasmanova previously approved these changes Feb 26, 2024
Copy link
Contributor

@mbasmanova mbasmanova left a comment

Choose a reason for hiding this comment

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

@Yuhta Looks great. Thanks. Please, confirm that presto_protocol.h/cpp files were auto-generated and not modified by hand.

@Yuhta Yuhta force-pushed the diffs/D54027587 branch 3 times, most recently from 1add3e2 to f6d8dac Compare February 26, 2024 23:10
mbasmanova
mbasmanova previously approved these changes Feb 26, 2024
@Yuhta Yuhta force-pushed the diffs/D54027587 branch 2 times, most recently from 0f774ae to 3c7a776 Compare February 27, 2024 14:11
This is the change needed on presto_cpp side to implement the new exchange
protocol.  Implement `ExchangeSource::getDataSizes` and use it when the header
`X-Presto-Get-Data-Size` exists (will be removed in the future once coordinator
support the `HEAD` calls), or the endpoint is called with HTTP `HEAD` method.

All changes here are backward-compatible.  The new protocol will not be used
until we start calling `getDataSizes` on velox side in `ExchangeClient`.

See prestodb#21926 for details about design of
the new protocol.

Also added new runtime stats `numTopOutputBuffers`.
@mbasmanova mbasmanova merged commit be66148 into prestodb:master Feb 27, 2024
59 checks passed
@wanglinsong wanglinsong mentioned this pull request May 1, 2024
48 tasks
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