Skip to content

Commit

Permalink
improve log level
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaochen-zhou committed May 10, 2024
1 parent 868ba4d commit e5c68f1
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 e5c68f1

Please sign in to comment.