Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

pavel-shvetsov-git
Copy link
Contributor

Added better error message as mentioned in issue description and comments.

@@ -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.");
Copy link
Contributor

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.

@fhueske
Copy link
Contributor

fhueske commented May 3, 2018

Thanks for the PR @pavel-shvetsov-git!
I've left a suggestion to improve the error message.
Afterwards the PR should be good to merge.

@pavel-shvetsov-git
Copy link
Contributor Author

Message has been improved as suggested.

@fhueske
Copy link
Contributor

fhueske commented May 7, 2018

Thanks for the update @pavel-shvetsov-git.
+1 to merge

@fhueske
Copy link
Contributor

fhueske commented May 7, 2018

merging

fhueske pushed a commit to fhueske/flink that referenced this pull request May 7, 2018
@asfgit asfgit closed this in 7a31ffd May 7, 2018
asfgit pushed a commit that referenced this pull request May 7, 2018
asfgit pushed a commit that referenced this pull request May 7, 2018
glaksh100 pushed a commit to lyft/flink that referenced this pull request Jun 5, 2018
glaksh100 pushed a commit to lyft/flink that referenced this pull request Jun 5, 2018
glaksh100 pushed a commit to lyft/flink that referenced this pull request Jun 6, 2018
glaksh100 pushed a commit to lyft/flink that referenced this pull request Jun 6, 2018
sampathBhat pushed a commit to sampathBhat/flink that referenced this pull request Jul 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants