You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2020/07/16 02:00:27 UTC

[GitHub] [incubator-doris] morningman commented on a change in pull request #4088: [Bug][Alter] Cancel the alter job if database has been dropped

morningman commented on a change in pull request #4088:
URL: https://github.com/apache/incubator-doris/pull/4088#discussion_r455464635



##########
File path: fe/src/main/java/org/apache/doris/clone/TabletScheduler.java
##########
@@ -879,9 +880,14 @@ private void deleteReplicaInternal(TabletSchedCtx tabletCtx, Replica replica, St
             throw new SchedException(Status.SCHEDULE_FAILED, "set watermark txn " + nextTxnId);
         } else if (replica.getState() == ReplicaState.DECOMMISSION && replica.getWatermarkTxnId() != -1) {
             long watermarkTxnId = replica.getWatermarkTxnId();
-            if (!Catalog.getCurrentGlobalTransactionMgr().isPreviousTransactionsFinished(watermarkTxnId,
-                    tabletCtx.getDbId(), Lists.newArrayList(tabletCtx.getTblId()))) {
-                throw new SchedException(Status.SCHEDULE_FAILED, "wait txn before " + watermarkTxnId + " to be finished");
+            try {
+                if (!Catalog.getCurrentGlobalTransactionMgr().isPreviousTransactionsFinished(watermarkTxnId,
+                        tabletCtx.getDbId(), Lists.newArrayList(tabletCtx.getTblId()))) {
+                    throw new SchedException(Status.SCHEDULE_FAILED,

Review comment:
       bear it! LOL




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org