-
Notifications
You must be signed in to change notification settings - Fork 13k
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
[FLINK-8237] [BucketingSink] Better error message added #5927
Conversation
@@ -550,6 +550,9 @@ private void openNewPartFile(Path bucketPath, BucketState<T> bucketState) throws | |||
Path inProgressPath = getInProgressPathFor(partPath); | |||
if (bucketState.writer == null) { | |||
bucketState.writer = writerTemplate.duplicate(); | |||
if (bucketState.writer == null) { | |||
throw new RuntimeException("Could not duplicate writer."); |
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 would add the class name of the writerTemplate
object and that the class needs to implement the Writer.duplicate()
method.
Thanks for the PR @pavel-shvetsov-git! |
Message has been improved as suggested. |
Thanks for the update @pavel-shvetsov-git. |
merging |
…er.duplicate returns null. This closes apache#5927.
…er.duplicate returns null. This closes #5927.
…er.duplicate returns null. This closes #5927.
…er.duplicate returns null. This closes apache#5927.
…er.duplicate returns null. This closes apache#5927.
…er.duplicate returns null. This closes apache#5927.
…er.duplicate returns null. This closes apache#5927.
…er.duplicate returns null. This closes apache#5927.
Added better error message as mentioned in issue description and comments.