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

FlinkPravegaWriter cannot be flushed following a write error #70

Closed
EronWright opened this issue Nov 17, 2017 · 2 comments
Closed

FlinkPravegaWriter cannot be flushed following a write error #70

EronWright opened this issue Nov 17, 2017 · 2 comments
Assignees
Labels

Comments

@EronWright
Copy link
Contributor

EronWright commented Nov 17, 2017

Problem description
When close or flush is called after a write that has failed internally, the method will stall forever.

Problem location
The problem is due to bad accounting of pending writes based on pendingWritesCount. The flush method waits for the count to reach zero, but the count is not properly decremented on error. (ref)

Suggestions for an improvement
Decrement the write count irrespective of success or failure.

@EronWright EronWright self-assigned this Nov 17, 2017
@fpj
Copy link
Contributor

fpj commented Nov 17, 2017

Why is the write failing? Could you post the error?

@EronWright
Copy link
Contributor Author

EronWright commented Nov 17, 2017

@fpj I hit the problem while developing a unit test for the writer. I don't think the specific error is significant. Take a look at the referenced code block, observing that the pendingWritesCount is not decremented on error, causing a subsequent flush to wait forever for pendingWritesCount to reach zero.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants