nooneuse commented on code in PR #66307:
URL: https://github.com/apache/doris/pull/66307#discussion_r3849980951
##########
fe/fe-core/src/main/java/org/apache/doris/backup/RestoreJob.java:
##########
@@ -2586,154 +2651,184 @@ protected void cleanMetaObjects(boolean isReplay) {
}
private Status atomicReplaceOlapTables(Database db, boolean isReplay) {
+ Preconditions.checkState(db.isWriteLockHeldByCurrentThread(),
+ "atomic replacement must hold the database write lock");
+ Status validationStatus = prevalidateAtomicRestoreTargets(db);
+ if (!validationStatus.ok()) {
+ return validationStatus;
+ }
+ try {
+
Env.getCurrentEnv().getConstraintManager().checkAndDropTableConstraints(
Review Comment:
Okay.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]