Skip to content

Commit

Permalink
Fix the issue that uuid is null in the log after execution
Browse files Browse the repository at this point in the history
  • Loading branch information
allenxwang committed Oct 3, 2024
1 parent 7b35568 commit 5810600
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1370,19 +1370,19 @@ public void run() {
if (_executionTimerInvolveBrokerRemovalOrDemotion != null) {
_executionTimerInvolveBrokerRemovalOrDemotion.update(duration, TimeUnit.MILLISECONDS);
}

String executionStatusString = String.format("task Id: %s; removed brokers: %s; demoted brokers: %s; total time used: %dms.",
_uuid,
_removedBrokers,
_demotedBrokers,
duration
);

if (_executionException != null) {
LOG.info("Execution failed: {}. Exception: {}", executionStatusString, _executionException.getMessage());
} else {
LOG.info("Execution succeeded: {}. ", executionStatusString);
}
// Clear completed execution.
clearCompletedExecution();
}
}

Expand Down Expand Up @@ -1494,8 +1494,6 @@ private void execute(UserTaskManager.UserTaskInfo userTaskInfo) {
_executionException = t;
} finally {
notifyFinishedTask(userTaskInfo);
// Clear completed execution.
clearCompletedExecution();
}
}

Expand Down

0 comments on commit 5810600

Please sign in to comment.