dinggege1024 commented on code in PR #2763:
URL: https://github.com/apache/doris/pull/2763#discussion_r981380592


##########
fe/src/main/java/org/apache/doris/alter/Alter.java:
##########
@@ -273,6 +276,18 @@ public void processAlterTable(AlterTableStmt stmt) throws 
UserException {
                 throw new DdlException("table with empty parition cannot do 
schema change. [" + tableName + "]");
             }
 
+            // if table state is unhealthy, change table repair priority, and 
wait until repair finish or exceed timeout
+            if (olapTable.getState() != OlapTableState.NORMAL) {

Review Comment:
   > First, `olapTable.getState() != OlapTableState.NORMAL` does not mean the 
table is unhealthy. Second, it's not good to sleep here, it will block the 
client connection for a very long time. Third, I don't think its good idea to 
add priority repair here. We should solve more why the table is often 
unhealthy, rather than increase the complexity here.
   
   LGTM



-- 
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: commits-unsubscr...@doris.apache.org

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


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

Reply via email to