-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[native] Fix the shuffle hanging problem when fetch data from presto …
…java (coordinator) Presto java worker doesn't set next token in response for a get data size request and it simply returns the buffered data from the source. The Prestissimo worker updates 'sequence_' with ack sequence encoded by next token and uses it as data stream offset to fetch data from the source. If the next token str is not set in the data response handler header, then ack sequence is set to zero which resets the 'sequence_' to zero, and the rollback of 'sequence_' can cause data hanging problem when Prestissimo worker fetch data from a Presto java worker (which can only happen in the case that Presto java worker run by the coordinator as some metadata operation can only execute on the coordinator) from the reset 'sequence_'. This PR fixes the issue by avoiding updating 'sequence_' if next token is not set in data response handler.
- Loading branch information
Showing
3 changed files
with
23 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters