Skip to content

Fix state check bug in Kafka Index Task#5204

Merged
fjy merged 3 commits intoapache:masterfrom
pjain1:fix_bug_kit
Jan 9, 2018
Merged

Fix state check bug in Kafka Index Task#5204
fjy merged 3 commits intoapache:masterfrom
pjain1:fix_bug_kit

Conversation

@pjain1
Copy link
Copy Markdown
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
Copy Markdown
Contributor

👍

@drcrallen
Copy link
Copy Markdown
Contributor

Is there a test for this?

@pjain1
Copy link
Copy Markdown
Member Author

pjain1 commented Jan 3, 2018

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

@pjain1
Copy link
Copy Markdown
Member Author

pjain1 commented Jan 4, 2018

@drcrallen added test

@pjain1
Copy link
Copy Markdown
Member Author

pjain1 commented Jan 8, 2018

@drcrallen can you have a look again ?

@fjy
Copy link
Copy Markdown
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