Merge branch 'master' into feat-lmapi-lib

This commit is contained in:
NagyZoltanPeter 2026-02-17 09:49:57 +01:00 committed by GitHub
commit 7e40b93224
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;"