Open marcocitus opened 7 years ago
Hm, I kind of assumed we'd not try to detect these. Think we'd have to check for a node's visited status after checking whether we've refound the start node. Then we should detect these too. (Plus some assert weakening)
Hm, I kind of assumed we'd not try to detect these.
Thinking about this some more, it looks like detecting self-deadlocks doesn't help much to anyone. Because it's very likely that the user wouldn't be able to finish such a transaction anytime ever.
The only benefit would be Citus cancels the transaction instead of waiting for the user to cancel it and the user realizes not to use such patters.
To create a self-deadlock: