Skip to content

Commit

Permalink
[Fix][Zeta] Increase the log level when waitForJobComplete fails (#6827)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaochen-zhou authored May 11, 2024
1 parent 329b849 commit 297f264
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,13 @@ public JobResult waitForJobCompleteV2() {
new RetryUtils.RetryMaterial(
100000,
true,
exception ->
ExceptionUtil.isOperationNeedRetryException(exception),
ExceptionUtil::isOperationNeedRetryException,
Constant.OPERATION_RETRY_SLEEP));
if (jobResult == null) {
throw new SeaTunnelEngineException("failed to fetch job result");
}
} catch (Exception e) {
LOGGER.info(
LOGGER.severe(
String.format(
"Job (%s) end with unknown state, and throw Exception: %s",
jobId, ExceptionUtils.getMessage(e)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public void acknowledgeTask(
}

protected boolean isFullyAcknowledged() {
return notYetAcknowledgedTasks.size() == 0;
return notYetAcknowledgedTasks.isEmpty();
}

private CompletedCheckpoint toCompletedCheckpoint() {
Expand Down

0 comments on commit 297f264

Please sign in to comment.