Skip to content

Commit

Permalink
fix:Only the DIST_LOAD cmdInfo will be deleted.
Browse files Browse the repository at this point in the history
  • Loading branch information
liuziqi authored and liiuzq-xiaobai committed Jul 8, 2024
1 parent 4c819de commit 674269c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import alluxio.conf.PropertyKey;
import alluxio.exception.ExceptionMessage;
import alluxio.exception.JobDoesNotExistException;
import alluxio.grpc.OperationType;
import alluxio.job.CmdConfig;
import alluxio.job.cmd.load.LoadCliConfig;
import alluxio.job.cmd.migrate.MigrateCliConfig;
Expand Down Expand Up @@ -304,7 +305,8 @@ private void cleanExpiredJobInfos() {
for (Map.Entry<Long, CmdInfo> x : mInfoMap.entrySet()) {
CmdInfo cmdInfo = x.getValue();
List<Long> cleanedJobsId = new ArrayList<>();
if (currentTime - cmdInfo.getJobSubmissionTime() > mTraceRetentionTime) {
if (OperationType.DIST_LOAD.equals(cmdInfo.getOperationType())
&& currentTime - cmdInfo.getJobSubmissionTime() > mTraceRetentionTime) {
try {
Status jobStatus = getCmdStatus(cmdInfo.getJobControlId());
if (jobStatus.isFinished()) {
Expand Down

0 comments on commit 674269c

Please sign in to comment.