Clear etl job files when job finished (#680)
This commit is contained in:
@ -283,6 +283,9 @@ public class Load {
|
||||
|
||||
String columnSeparatorStr = params.get(LoadStmt.KEY_IN_PARAM_COLUMN_SEPARATOR);
|
||||
if (columnSeparatorStr != null) {
|
||||
if (columnSeparatorStr.isEmpty()) {
|
||||
columnSeparatorStr = "\t";
|
||||
}
|
||||
columnSeparator = new ColumnSeparator(columnSeparatorStr);
|
||||
try {
|
||||
columnSeparator.analyze();
|
||||
|
||||
@ -267,8 +267,9 @@ public class LoadChecker extends Daemon {
|
||||
LOG.debug("job {} is already committed, just wait it to be visiable, transaction state {}", job, state);
|
||||
return;
|
||||
} else if (state.getTransactionStatus() == TransactionStatus.VISIBLE) {
|
||||
// if job is committed and then fe restart, the progress is not persisted, so that set it here
|
||||
load.updateLoadJobState(job, JobState.FINISHED);
|
||||
if (load.updateLoadJobState(job, JobState.FINISHED)) {
|
||||
load.clearJob(job, JobState.QUORUM_FINISHED);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user