add debug log to see if partition rm is FINALIZEd

This commit is contained in:
Ivan Folgueira Bande 2026-02-16 16:17:59 +01:00
parent 137995bcd6
commit c3f030de15
No known key found for this signature in database
GPG Key ID: 3C117481F89E24A7

View File

@ -1351,7 +1351,9 @@ proc removePartition(
debug "detected error when trying to detach partition", error
if ($error).contains("FINALIZE") or
($error).contains("already pending detach in part"):
($error).contains("already pending detach"):
debug "enforce detach with FINALIZE because of detected error", error
## We assume the database is suggesting to use FINALIZE when detaching a partition
let detachPartitionFinalizeQuery =
"ALTER TABLE messages DETACH PARTITION " & partitionName & " FINALIZE;"