mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-03-06 09:03:14 +00:00
Merge branch 'master' into update_release
This commit is contained in:
commit
9758100232
@ -1347,8 +1347,10 @@ proc removePartition(
|
||||
(await self.performWriteQuery(detachPartitionQuery)).isOkOr:
|
||||
info "detected error when trying to detach partition", error
|
||||
|
||||
if ($error).contains("FINALIZE") or
|
||||
($error).contains("already pending detach in part"):
|
||||
if ($error).contains("FINALIZE") or ($error).contains("already pending"):
|
||||
## We assume "already pending detach in partitioned table ..." as possible error
|
||||
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