-
Notifications
You must be signed in to change notification settings - Fork 4.5k
fix ConcurrentModificationException in KafkaIO #290
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
- handle a possible race between poll thread and close().
| && offsetFetcherThread.awaitTermination(10, TimeUnit.SECONDS)) { | ||
| break; // done | ||
| } | ||
| } catch (InterruptedException e) { |
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.
should you set the interrupted bit here?
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 set the flag in two places where we are interrupted on thread not in our control.
LGTM once box is checked and tests pass. If you've done both and I haven't merged, ping me ;) |
|
R: @dhalperi , I could reproduce this by adding an extra cosumer.poll() after 'closed' flag was seen in consumerPollLoop(). I could not reproduce the problem without extra poll. With that, verified both that the fix works and in case the thread takes much longer, close() properly waits for it to shutdown with periodic warning log. Raghu. |
|
LGTM, will merge soon. |
Adds a system test demonstrating that ArrayUnion operation no longer deletes pre-existing data Fixes apache#14 🦕
Uh oh!
There was an error while loading. Please reload this page.