morningman commented on a change in pull request #2763: [Alter]Add wait time
while doing alter options
URL: https://github.com/apache/incubator-doris/pull/2763#discussion_r368214827
##########
File path: fe/src/main/java/org/apache/doris/alter/RollupJobV2.java
##########
@@ -168,8 +168,17 @@ protected void runPendingJob() throws
AlterCancelException {
if (tbl == null) {
throw new AlterCancelException("Table " + tableId + " does not
exist");
}
- Preconditions.checkState(tbl.getState() == OlapTableState.ROLLUP);
+ boolean isStable = tbl.isStable(Catalog.getCurrentSystemInfo(),
+ Catalog.getCurrentCatalog().getTabletScheduler(),
+ db.getClusterName());
+ if (!isStable) {
+ errMsg = "table is unstable";
+ LOG.warn("doing rollup job: " + jobId + "while table is not
stable.");
Review comment:
```suggestion
LOG.warn("doing rollup job: " + jobId + " while table is not
stable.");
```
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]