Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix job log #17713

Merged
merged 2 commits into from
Jun 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,14 @@ public void failJob(AlluxioRuntimeException reason) {
setJobState(JobState.FAILED, true);
mFailedReason = Optional.of(reason);
JOB_COPY_FAIL.inc();
LOG.info("Copy Job {} fails with status: {}", mJobId, this);
}

@Override
public void setJobSuccess() {
setJobState(JobState.SUCCEEDED, true);
JOB_COPY_SUCCESS.inc();
LOG.info("Copy Job {} succeeds with status {}", mJobId, this);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,12 +309,14 @@ public void failJob(AlluxioRuntimeException reason) {
setJobState(JobState.FAILED, true);
mFailedReason = Optional.of(reason);
JOB_LOAD_FAIL.inc();
LOG.info("Load Job {} fails with status: {}", mJobId, this);
}

@Override
public void setJobSuccess() {
setJobState(JobState.SUCCEEDED, true);
JOB_LOAD_SUCCESS.inc();
LOG.info("Load Job {} succeeds with status {}", mJobId, this);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,17 +214,17 @@ public void setVerificationEnabled(boolean enableVerification) {
*/
@Override
public void failJob(AlluxioRuntimeException reason) {
LOG.info("Move Job {} fails with status: {}", mJobId, this);
setJobState(JobState.FAILED, true);
mFailedReason = Optional.of(reason);
JOB_MOVE_FAIL.inc();
LOG.info("Move Job {} fails with status: {}", mJobId, this);
}

@Override
public void setJobSuccess() {
LOG.info("Move Job {} succeeds with status {}", mJobId, this);
setJobState(JobState.SUCCEEDED, true);
JOB_MOVE_SUCCESS.inc();
LOG.info("Move Job {} succeeds with status {}", mJobId, this);
}

/**
Expand Down
Loading