[Bug][Export] Fix bug of one more record showed in the “show export limit n" (#6012)

This commit is contained in:
GeoffreyStark
2021-06-20 16:10:21 +08:00
committed by GitHub
parent 4fe8bdfe1d
commit 9bc2df43a7
2 changed files with 3 additions and 1 deletions

View File

@ -215,7 +215,7 @@ public class ExportMgr {
exportJobInfos.add(jobInfo);
if (counter++ >= resultNum) {
if (++counter >= resultNum) {
break;
}
}

View File

@ -246,6 +246,8 @@ public class ExportExportingTask extends MasterTask {
isCancelled = true;
this.failStatus = new Status(TStatusCode.TIMEOUT, "timeout");
cancelType = ExportFailMsg.CancelType.TIMEOUT;
String failMsg = "export exporting job timeout.";
job.setFailMsg(new ExportFailMsg(cancelType, failMsg));
LOG.warn("export exporting job timeout. job: {}", job);
}