Unverified Commit a41aac28 authored by Licho's avatar Licho Committed by GitHub

refactor: JobTransBuilder (#2591)

* refactor: JobTransBuilder * feat: add print stacktrace * Spotless Apply --------- Co-authored-by: 's avatarleechor <leechor@users.noreply.github.com>
parent 2372527b
...@@ -285,6 +285,7 @@ public class JobManager { ...@@ -285,6 +285,7 @@ public class JobManager {
} catch (Exception e) { } catch (Exception e) {
String error = StrFormatter.format( String error = StrFormatter.format(
"Exception in executing FlinkSQL:\n{}\n{}", SqlUtil.addLineNumber(currentSql), e.getMessage()); "Exception in executing FlinkSQL:\n{}\n{}", SqlUtil.addLineNumber(currentSql), e.getMessage());
e.printStackTrace();
job.setEndTime(LocalDateTime.now()); job.setEndTime(LocalDateTime.now());
job.setStatus(Job.JobStatus.FAILED); job.setStatus(Job.JobStatus.FAILED);
job.setError(error); job.setError(error);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment