[Bug]: Deadlock on compaction when stopping datanode #35198
Labels
kind/bug
Issues or changes related a bug
stale
indicates no udpates for 30 days
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
Is there an existing issue for this?
Environment
Current Behavior
Phenomenon:
Before stopping the old datanode, it received two compaction tasks, A and B, both targeting the same segment, seg0.
Process:
Q: Why is this a probabilistic issue?
A: The deadlock does not occur if Task A is stopped before Task B.
Q: Why were compaction tasks received for the same segment?
A: The datanode received compaction tasks from both the new and old datacoords simultaneously.
Solution:
Stop all compaction tasks in parallel to avoid interdependencies and prevent deadlocks.
Expected Behavior
No response
Steps To Reproduce
No response
Milvus Log
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: