Skip to content

[native] Add http request active check when fetch data from output buffer manager#21780

Merged
xiaoxmeng merged 2 commits intoprestodb:masterfrom
xiaoxmeng:scale1
Jan 26, 2024
Merged

[native] Add http request active check when fetch data from output buffer manager#21780
xiaoxmeng merged 2 commits intoprestodb:masterfrom
xiaoxmeng:scale1

Conversation

@xiaoxmeng
Copy link
Contributor

@xiaoxmeng xiaoxmeng commented Jan 25, 2024

Add http request active check when fetch data from output buffer manager
in Velox. The active check is based on whether the http callstate has been destroyed
or the associated request has expired. This is to avoid arbitrary output buffer
to load data into a destination buffer which has set notify but the associated client
request has expired. This helps to accelerate the shuffle for query with scale writer
which uses arbitrary output buffer.

Unit test is added to verify this behavior.

@facebook-github-bot
Copy link
Collaborator

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

@xiaoxmeng xiaoxmeng force-pushed the scale1 branch 2 times, most recently from be750d6 to ddeeb3a Compare January 26, 2024 05:13
@xiaoxmeng xiaoxmeng changed the title [native]scale writer test [native] Add http request active check when fetch data from velox Jan 26, 2024
@xiaoxmeng xiaoxmeng force-pushed the scale1 branch 4 times, most recently from a352bca to 6179ffa Compare January 26, 2024 06:28
@xiaoxmeng xiaoxmeng changed the title [native] Add http request active check when fetch data from velox [native] Add http request active check when fetch data from output buffer manager Jan 26, 2024
@xiaoxmeng xiaoxmeng marked this pull request as ready for review January 26, 2024 06:33
@xiaoxmeng xiaoxmeng requested a review from a team as a code owner January 26, 2024 06:33
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.

Thanks. Please, extract "Advance Velox" changes into a separate commit before merging.

…ffer manager

Add http request active check when fetch data from output buffer manager
in Velox. The active check is based on whether the http callstate has been destroyed
or the associated request has expired. This is to avoid arbitrary output buffer
to load data into a destination buffer which has set notify but the associated client
request has expired. This helps to accelerate the shuffle for query with scale writer
which uses arbitrary output buffer.

Unit test is added to verify this behavior.
@xiaoxmeng xiaoxmeng merged commit d62a06f into prestodb:master Jan 26, 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