v.21.11Improvements
Fix lock-order inversion between DROP TABLE for DatabaseMemory and LiveView
Fixlock-order-inversionbetweenDROP TABLEforDatabaseMemoryandLiveView. Live View is an experimental feature. Memory database is used in clickhouse-local. #29929 (Azat Khuzhin).
Why it matters
This fix resolves a concurrency problem that could cause deadlocks when dropping tables in the experimental Live View feature and inDatabaseMemory, which is used by clickhouse-local. The improvement ensures more stable behavior during table drop operations.How to use it
Users do not need to take any specific action to enable this fix. It is applied internally to prevent deadlocks when usingDROP TABLE with LiveView or DatabaseMemory.