Skip to content

[native] Add non-blocking shuffle reader interface#21419

Merged
arhimondr merged 1 commit intoprestodb:masterfrom
patrickstuedi:nonblocking-shuffle
Jan 22, 2024
Merged

[native] Add non-blocking shuffle reader interface#21419
arhimondr merged 1 commit intoprestodb:masterfrom
patrickstuedi:nonblocking-shuffle

Conversation

@patrickstuedi
Copy link
Contributor

Avoid blocking during shuffle read to support suspending of the shuffle operator.

@patrickstuedi patrickstuedi requested a review from a team as a code owner November 20, 2023 06:21
@patrickstuedi patrickstuedi force-pushed the nonblocking-shuffle branch 4 times, most recently from 3aef69d to 0569776 Compare November 27, 2023 05:12
@arhimondr arhimondr requested a review from xiaoxmeng December 7, 2023 21:39
@patrickstuedi patrickstuedi force-pushed the nonblocking-shuffle branch 2 times, most recently from 9989481 to 4dd9ad8 Compare December 18, 2023 00:07
Copy link
Contributor

@xiaoxmeng xiaoxmeng left a comment

Choose a reason for hiding this comment

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

@patrickstuedi LGTM % nits. Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

Move mutex_ ahead of its protected fields? Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

s/hasNextValue/hasNext/

@patrickstuedi patrickstuedi force-pushed the nonblocking-shuffle branch 2 times, most recently from 646d2d0 to 7d3ed09 Compare December 29, 2023 01:41
Copy link
Contributor

@xiaoxmeng xiaoxmeng left a comment

Choose a reason for hiding this comment

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

@patrickstuedi thanks for the update!

@patrickstuedi patrickstuedi force-pushed the nonblocking-shuffle branch 8 times, most recently from f87d183 to b63ee6e Compare January 18, 2024 05:12
Copy link
Contributor

@xiaoxmeng xiaoxmeng left a comment

Choose a reason for hiding this comment

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

@patrickstuedi LGTM % nit. Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

return folly::makeSemiFuture<BufferPtr>(nullptr);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@patrickstuedi patrickstuedi force-pushed the nonblocking-shuffle branch 2 times, most recently from 7d24cb2 to cdd3e4a Compare January 19, 2024 00:07
Avoid blocking during shuffle read to support suspending of the shuffle
operator.
Copy link
Contributor

@xiaoxmeng xiaoxmeng left a comment

Choose a reason for hiding this comment

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

@patrickstuedi LGTM. Thanks!

@arhimondr arhimondr merged commit a0b0a7d into prestodb:master Jan 22, 2024
@wanglinsong wanglinsong mentioned this pull request Feb 12, 2024
64 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.

4 participants