v.18.14Improvement
Fixed Concurrent DROP and CREATE Database/Table Behaviors
Fixed behavior for simultaneous DROP DATABASE/TABLE IF EXISTS and CREATE DATABASE/TABLE IF NOT EXISTS. Previously, aCREATE DATABASE ... IF NOT EXISTSquery could return the error message "File … already exists", and theCREATE TABLE ... IF NOT EXISTSandDROP TABLE IF EXISTSqueries could returnTable ... is creating or attaching right now. #3101
Why it matters
This feature addresses concurrency issues where runningCREATE and DROP commands with conditional existence checks simultaneously could lead to confusing errors and operation failures. It improves the reliability and usability of database and table management in concurrent environments.How to use it
No special configuration is needed. Users can safely runCREATE DATABASE IF NOT EXISTS, CREATE TABLE IF NOT EXISTS, and DROP TABLE IF EXISTS queries concurrently without encountering race condition errors.