Skip to content

Commit

Permalink
[BugFix] Fix cancel optimize table fail
Browse files Browse the repository at this point in the history
Signed-off-by: meegoo <meegoo.sr@gmail.com>
  • Loading branch information
meegoo committed Oct 24, 2024
1 parent 94938dd commit d150734
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2572,6 +2572,7 @@ public void cancel(CancelStmt stmt, String reason) throws DdlException {
try {
OlapTable olapTable = (OlapTable) table;
if (olapTable.getState() != OlapTableState.SCHEMA_CHANGE
&& olapTable.getStae() != OlapTableState.OPTIMIZE
&& olapTable.getState() != OlapTableState.WAITING_STABLE) {
throw new DdlException("Table[" + tableName + "] is not under SCHEMA_CHANGE/WAITING_STABLE.");
}
Expand Down

0 comments on commit d150734

Please sign in to comment.