KAFKA-10011: Remove task id from lockedTaskDirectories during handleLostAll#8682
KAFKA-10011: Remove task id from lockedTaskDirectories during handleLostAll#8682guozhangwang merged 9 commits intoapache:trunkfrom
Conversation
|
test this please |
|
Test this please |
|
Instead of removing the tasks during |
|
I agree with @ableegoldman here, after the |
|
I also think we should reset/clear the set at the beginning of |
|
Will attempt Sophie's suggestion here |
ableegoldman
left a comment
There was a problem hiding this comment.
Cool this LGTM, thanks for the fix!
|
I think it is still better to log a warn at the end of |
|
@guozhangwang Why would we warn? You mean if we have any tasks leftover? These are just tasks that are currently assigned |
I think we would only have leftover tasks if they are closed due to exception during the rebalance. |
|
Well, |
* 'trunk' of github.com:apache/kafka: MINOR: Increase gradle daemon’s heap size to 2g (apache#8700) KAFKA-9603: Do not turn on bulk loading for segmented stores on stand-by tasks (apache#8661) KAFKA-9859 / kafka-streams-application-reset tool doesn't take into account topics generated by KTable foreign key join operation (apache#8671) MINOR: Fix redundant typos in comments and javadocs (apache#8693) KAFKA-10010: Should make state store registration idempotent (apache#8681) KAFKA-10011: Remove task id from lockedTaskDirectories during handleLostAll (apache#8682) KAFKA-9992: Eliminate JavaConverters in EmbeddedKafkaCluster (apache#8673) KAFKA-6145: Add unit tests to verify fix of bug KAFKA-9173 (apache#8689) MINOR: Update stream documentation (apache#8622) MINOR: Small fixes in the documentation (apache#8623)
As stated, we couldn't wait for handleRebalanceComplete in the case of handleLostAll, as we already closed the active task as dirty, and could potentially require its offset in the next thread.runOnce call.
Committer Checklist (excluded from commit message)