Repository navigation
Revert "Fix DROP TABLE hang on Kafka tables after consumer heartbeat error" - #101646
Conversation
|
Workflow [PR], commit [e74e136] Summary: ❌
AI ReviewSummaryThis PR reverts the prior fix for Kafka shutdown handling in Findings❌ Blockers
ClickHouse Rules
Performance & Safety
Final Verdict
|
| /// a heartbeat error. | ||
| executor.setCancelCallback([this]() { return shutdown_called.load(); }, 100); | ||
|
|
||
| executor.execute(); |
There was a problem hiding this comment.
❌ This revert removes the cancellation callback for CompletedPipelineExecutor. That restores the original deadlock-risk path where DROP TABLE waits for streamToViews while execute can block in Kafka/librdkafka polling during rebalance or heartbeat error handling.
Please keep a shutdown-aware cancellation path (either restore setCancelCallback here or provide an equivalent mechanism) so table shutdown cannot hang indefinitely.
| /// as dirty and offsets will remain uncommitted. | ||
| if (!shutdown_called) | ||
| source->commit(); | ||
| source->commit(); |
There was a problem hiding this comment.
❌ This revert also restores unconditional source->commit after pipeline execution. During shutdown-driven interruption, committing offsets without guaranteeing the batch reached all dependent views can acknowledge messages that were not fully processed, causing data loss.
Please preserve the shutdown guard (or equivalent logic) that skips commits when shutdown cancellation happened.
|
The Stress test (arm_msan) failure is fixed by #101239, which should be merged first. After it is merged, please update the branch to include the fix. |
LLVM Coverage Report
Changed lines: 100.00% (14/14) | lost baseline coverage: 1 line(s) · Uncovered code |
|
@alexey-milovidov PTAL |
alexey-milovidov
left a comment
There was a problem hiding this comment.
The change is ok, but why did it break integration tests?
|
This should help to get original exception - #102144 |
Reverts #100388
Version info
26.4.1.689