Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
w41ter committed Nov 4, 2024
1 parent ac2974f commit cea1bf0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public class RestoreJob extends AbstractJob implements GsonPostProcessable {
public enum RestoreJobState {
PENDING, // Job is newly created. Check and prepare meta in catalog. Create replica if necessary.
// Waiting for replica creation finished synchronously, then sending snapshot tasks.
// then transfer to PENDING.
// then transfer to CREATING.
CREATING, // Creating replica on BE. Transfer to SNAPSHOTING after all replicas created.
SNAPSHOTING, // Waiting for snapshot finished. Than transfer to DOWNLOAD.
DOWNLOAD, // Send download tasks.
Expand Down Expand Up @@ -445,8 +445,8 @@ public synchronized void run() {
checkIfNeedCancel();

if (status.ok()) {
if (state != RestoreJobState.PENDING && label.equals(
DebugPointUtil.getDebugParamOrDefault("FE.PAUSE_NON_PENDING_RESTORE_JOB", ""))) {
if ((state != RestoreJobState.PENDING || state != RestoreJobState.CREATING)
&& label.equals(DebugPointUtil.getDebugParamOrDefault("FE.PAUSE_NON_PENDING_RESTORE_JOB", ""))) {
LOG.info("pause restore job by debug point: {}", this);
return;
}
Expand Down

0 comments on commit cea1bf0

Please sign in to comment.