mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-02-20 13:53:10 +00:00
add debug log to see if partition rm is FINALIZEd
This commit is contained in:
parent
137995bcd6
commit
c3f030de15
@ -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;"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user