Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-1678

MetaData clean just clean FINISHED and DISCARD jobs,but job correct status is SUCCEED

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • v1.3.0, v1.5.0
    • v1.3.1, v1.5.2
    • Metadata
    • None

    Description

      MetadataCleanupJob can not clean jobs.

      for (ExecutablePO executable : allExecutable) {
      long lastModified = executable.getLastModified();
      ExecutableOutputPO output = executableDao.getJobOutput(executable.getUuid());
      if (System.currentTimeMillis() - lastModified > TIME_THREADSHOLD_FOR_JOB && (output.getStatus().equals(JobStatusEnum.FINISHED.toString()) || output.getStatus().equals(JobStatusEnum.DISCARDED.toString()))) {
      toDeleteResource.add(ResourceStore.EXECUTE_PATH_ROOT + "/" + executable.getUuid());
      toDeleteResource.add(ResourceStore.EXECUTE_OUTPUT_ROOT + "/" + executable.getUuid());

      for (ExecutablePO task : executable.getTasks())

      { toDeleteResource.add(ResourceStore.EXECUTE_PATH_ROOT + "/" + task.getUuid()); toDeleteResource.add(ResourceStore.EXECUTE_OUTPUT_ROOT + "/" + task.getUuid()); }

      }
      }

      Attachments

        1. KYLIN-1678.patch
          2 kB
          ChenFolin
        2. KYLIN-1678-1.patch
          2 kB
          ChenFolin

        Activity

          People

            chenfolin ChenFolin
            chenfolin ChenFolin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: