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

KAFKA-5787: StoreChangelogReader needs to restore partitions that were added post initialization #3747

Closed
wants to merge 1 commit into from

Conversation

dguy
Copy link
Contributor

@dguy dguy commented Aug 27, 2017

If a task fails during initialization due to a LockException, its changelog partitions are not immediately added to the StoreChangelogReader as the thread doesn't hold the lock. However StoreChangelogReader#restore will be called and it sets the initialized flag. On a subsequent successfull call to initialize the new tasks the partitions are added to the StoreChangelogReader, however as it is already initialized these new partitions will never be restored. So the task would remain in a non-running state forever.

@dguy
Copy link
Contributor Author

dguy commented Aug 27, 2017

@guozhangwang backport of #3736

@guozhangwang
Copy link
Contributor

retest this please

@guozhangwang
Copy link
Contributor

0.11.0 branch does not work with Scala 2.12 version.

LGTM.

asfgit pushed a commit that referenced this pull request Aug 29, 2017
…e added post initialization

If a task fails during initialization due to a LockException, its changelog partitions are not immediately added to the StoreChangelogReader as the thread doesn't hold the lock. However StoreChangelogReader#restore will be called and it sets the initialized flag. On a subsequent successfull call to initialize the new tasks the partitions are added to the StoreChangelogReader, however as it is already initialized these new partitions will never be restored. So the task would remain in a non-running state forever.

Author: Damian Guy <damian.guy@gmail.com>

Reviewers: Guozhang Wang <wangguoz@gmail.com>

Closes #3747 from dguy/kafka-5787-0.11
@dguy
Copy link
Contributor Author

dguy commented Aug 29, 2017

merged to 0.11

@dguy dguy closed this Aug 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants