-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-24235][SS] Implement continuous shuffle writer for single reader partition. #21428
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
1d6b718
continuous shuffle read RDD
jose-torres b5d1008
docs
jose-torres af40769
Merge remote-tracking branch 'apache/master' into readerRddMaster
jose-torres 46456dc
fix ctor
jose-torres 2ea8a6f
multiple partition test
jose-torres 955ac79
unset task context after test
jose-torres 8cefb72
conf from RDD
jose-torres f91bfe7
endpoint name
jose-torres 2590292
testing bool
jose-torres 859e6e4
tests
jose-torres b23b7bb
take instead of poll
jose-torres 97f7e8f
add interface
jose-torres de21b1c
clarify comment
jose-torres 7dcf51a
multiple
jose-torres ad0b5aa
writer with 1 reader partition
jose-torres c9adee5
docs and iface
jose-torres 63d38d8
Merge remote-tracking branch 'apache/master' into writerTask
jose-torres 331f437
increment epoch
jose-torres f3ce675
undo oop
jose-torres e0108d7
make rdd loop
jose-torres f400651
remote write RDD
jose-torres 1aaad8d
rename classes
jose-torres 59890d4
combine suites
jose-torres af1508c
fully rm old suite
jose-torres 65837ac
reorder tests
jose-torres a68fae2
return future
jose-torres 98d55e4
finish getting rid of old name
jose-torres e6b9118
synchronous
jose-torres 629455b
finish rename
jose-torres cb6d42b
add timeouts
jose-torres 59d6ff7
unalign
jose-torres f90388c
add note
jose-torres 4bbdeae
parallel
jose-torres e57531d
fix compile
jose-torres cff37c4
fix compile
jose-torres File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add note
- Loading branch information
commit f90388c36e100fd1c6a9cf2ac96c5247c0a8672f
There are no files selected for viewing
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line may block PRC threads and cause some critical RPC messages delayed. In addition, if the reader fails, this line may block forever if the queue is full.
I'm okey with this right now since it's an experimental feature. Could you create a SPARK ticket and add a TODO here to comment the potential issue so that we won't forget this issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what a critical RPC message is in this context. This line is intended to block forever if the queue is full; the receiver should not take any action or accept any other messages until the queue stops being full.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All RPC messages inside Spark are processed in a shared fixed thread pool, hence we cannot run blocking calls inside a RPC thread.
I think we need to design a backpressure mechanism in future fundamentally because a receiver cannot block a sender sending data. For example, even if we block here, we still cannot prevent the sender sending data and they will finally fulfill the TCP buffer. We cannot just count on TCP backpressure here as we need to use the same TCP connection in order to support thousands of machines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a very strange characteristic for an RPC framework.
I don't know what backpressure could mean other than a receiver blocking a sender from sending more data. In any case, the final shuffle mechanism isn't going to use the RPC framework, so I added a reference to it. (We can discuss in a later PR whether we want to leave this mechanism lying around or remove it once we're confident the TCP-based one is working.)