-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-19499][SS]Add more notes in the comments of Sink.addBatch() #16840
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
Conversation
| * Otherwise, you may get a wrong result. | ||
| * | ||
| * Note 2: The method is supposed to be executed synchronously, i.e. the method should only return | ||
| * after data is added to sink successfully. |
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.
nit: data is added -> data is consumed. add may be not clear as you can also add DataFrame to a collection and do nothing.
|
Test build #72527 has finished for PR 16840 at commit
|
|
Test build #72535 has finished for PR 16840 at commit
|
|
LGTM. Thanks. Merging to master and 2.1. |
## What changes were proposed in this pull request? addBatch method in Sink trait is supposed to be a synchronous method to coordinate with the fault-tolerance design in StreamingExecution (being different with the compute() method in DStream) We need to add more notes in the comments of this method to remind the developers ## How was this patch tested? existing tests Author: CodingCat <[email protected]> Closes #16840 from CodingCat/SPARK-19499. (cherry picked from commit d4cd975) Signed-off-by: Shixiong Zhu <[email protected]>
|
thanks |
## What changes were proposed in this pull request? addBatch method in Sink trait is supposed to be a synchronous method to coordinate with the fault-tolerance design in StreamingExecution (being different with the compute() method in DStream) We need to add more notes in the comments of this method to remind the developers ## How was this patch tested? existing tests Author: CodingCat <[email protected]> Closes apache#16840 from CodingCat/SPARK-19499.
What changes were proposed in this pull request?
addBatch method in Sink trait is supposed to be a synchronous method to coordinate with the fault-tolerance design in StreamingExecution (being different with the compute() method in DStream)
We need to add more notes in the comments of this method to remind the developers
How was this patch tested?
existing tests