Skip to content

Commit

Permalink
change log level to warn
Browse files Browse the repository at this point in the history
  • Loading branch information
gnehil committed Aug 9, 2024
1 parent a2be51b commit 5001070
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ public Object createIngestionLoad(HttpServletRequest request, HttpServletRespons
ConnectContext.get().getCurrentUserIdentity());

} catch (Exception e) {
LOG.error("create ingestion load job failed, db: {}, err: {}", db, e.getMessage());
LOG.warn("create ingestion load job failed, db: {}, err: {}", db, e.getMessage());
return ResponseEntityBuilder.okWithCommonError(e.getMessage());
}

Expand Down Expand Up @@ -761,12 +761,13 @@ private void executeCreateAndStartIngestionLoad(String dbName, String label, Lis

} catch (DdlException | BeginTransactionException | MetaNotFoundException | AnalysisException
| QuotaExceedException | LoadException e) {
LOG.warn("create ingestion load job failed, db: {}, load id: {}, err: {}", dbName, loadId, e.getMessage());
if (loadId != -1L) {
try {
Env.getCurrentEnv().getLoadManager().getLoadJob(loadId).cancelJob(
new FailMsg(FailMsg.CancelType.UNKNOWN, StringUtils.defaultIfBlank(e.getMessage(), "")));
} catch (DdlException ex) {
LOG.error("cancel ingestion load failed, db: {}, load id: {}, err: {}", dbName, loadId,
LOG.warn("cancel ingestion load failed, db: {}, load id: {}, err: {}", dbName, loadId,
e.getMessage());
}
}
Expand Down Expand Up @@ -839,7 +840,7 @@ public Object updateIngestionLoad(HttpServletRequest request, HttpServletRespons
});
ingestionLoadJob.updateJobStatus(statusInfo);
} catch (IOException | MetaNotFoundException | UnauthorizedException e) {
LOG.error("cancel ingestion load job failed, db: {}, load id: {}, err: {}", db, loadId, e.getMessage());
LOG.warn("cancel ingestion load job failed, db: {}, load id: {}, err: {}", db, loadId, e.getMessage());
return ResponseEntityBuilder.okWithCommonError(e.getMessage());
}

Expand Down

0 comments on commit 5001070

Please sign in to comment.