Skip to content

Commit

Permalink
fix unknown jobid bug (DataLinkDC#2206)
Browse files Browse the repository at this point in the history
Co-authored-by: chengsheng <[email protected]>
  • Loading branch information
seawenc and chengsheng authored Aug 15, 2023
1 parent b0c7ca3 commit f5244d5
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,11 @@ public GatewayResult submitJar() {
// if JobStatusMessage not have job id, use timestamp
// and... it`s maybe wrong with submit
if (TextUtils.isEmpty(jobId)) {
jobId = "unknown" + System.currentTimeMillis();
int cost = SystemConfiguration.getInstances().getJobIdWait() - counts;
String clusterId = clusterClient.getClusterId();
throw new Exception(
"Unable to obtain jobId. Please contact management to troubleshoot the issue,Waiting time:"
+ cost + "s,job name:" + clusterId);
}
result.setClusterId(jobId);
result.setWebURL(clusterClient.getWebInterfaceURL());
Expand Down

0 comments on commit f5244d5

Please sign in to comment.