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

Fix state check bug in Kafka Index Task #5204

Merged
merged 3 commits into from
Jan 9, 2018
Merged

Fix state check bug in Kafka Index Task #5204

merged 3 commits into from
Jan 9, 2018

Conversation

pjain1
Copy link
Member

@pjain1 pjain1 commented Jan 2, 2018

Fix state check when a replacement task is started in place of a failed task. Without this fix, service can get into state where tasks are continuously failing and Supervisor is continuously starting new replacement tasks.

The problem is that if any task has done some handoffs then the start offsets of the latest sequence will not match with the start offsets of the task group, thus in the replacement task the condition check will fail.

@himanshug
Copy link
Contributor

👍

@drcrallen
Copy link
Contributor

Is there a test for this?

@pjain1
Copy link
Member Author

pjain1 commented Jan 3, 2018

@drcrallen adding test looks tricky. I can try if you really want.

@pjain1
Copy link
Member Author

pjain1 commented Jan 4, 2018

@drcrallen added test

@pjain1
Copy link
Member Author

pjain1 commented Jan 8, 2018

@drcrallen can you have a look again ?

@fjy
Copy link
Contributor

fjy commented Jan 9, 2018

👍

@fjy fjy merged commit 83c6c48 into apache:master Jan 9, 2018
@pjain1 pjain1 deleted the fix_bug_kit branch January 9, 2018 02:27
jon-wei pushed a commit that referenced this pull request Jan 10, 2018
[Backport] Fix state check bug in Kafka Index Task #5204
seoeun25 added a commit to seoeun25/incubator-druid that referenced this pull request Jan 10, 2020
* Kafka Index Task that supports Incremental handoffs apache#4815

* prevent NPE from supressing actual exception (apache#5146)

* prevent npe on mismatch between number of kafka partitions and task count (apache#5139)

* Throw away rows with timestamps beyond long bounds in kafka indexing (apache#5215) (apache#5232)

* Fix state check bug in Kafka Index Task (apache#5204) (apache#5248)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants