Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-26491

Archive artifact with future expiration date are getting deleted from cold earlier then expected

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 7.27.10, 7.28.11
    • Component/s: None
    • Labels:
      None
    • Location:
      External

      Description

      Summary 

      During investigation of a flaky E2E test we have found that archived files are getting deleted before the original expiration time.

      Reproduce steps

      We can easily reproduce this bug by running this test multiple times until failure.

      We have notice that the expiration time is indeed the right value 3 years from now

      2021-11-04T12:12:14.376Z|85e08d53d76df4dc|172.17.0.3|token:jfrt@01fkn693qx0knv0eq7a38w13f1|PUT|/iiukwhws_YHqTSfN-repo/YHqTSfN-archive.txt;artifact.retention.archive.time=1636027934358;artifact.retention.archive.expiration.time=1730678400000|201|11|0|17|Artifactory/7.29.0-m026 72900026
      

      but the file still get deleted anyway by the cleaner

      2021-11-04T12:12:14.355Z [jfrt ] [INFO ] [85e08d53d76df4dc] [o.a.e.UploadServiceImpl:466   ] [http-nio-8081-exec-9] - Deploy to 'iiukwhws_YHqTSfN-repo:YHqTSfN-archive.txt' Content-Length: 0 (estimation) artificial: false
      2021-11-04T12:12:14.362Z [jfrt ] [INFO ] [85e08d53d76df4dc] [o.a.e.UploadServiceImpl:466   ] [http-nio-8081-exec-8] - Deploy to 'iiukwhws_YHqTSfN-repo:YHqTSfN-archive.txt' Content-Length: 11 (estimation) artificial: false
      2021-11-04T12:12:15.000Z [jfrt ] [DEBUG] [55ead5b6fad6e505] [a.a.r.c.ArchivedItemCleaner:32] [art-exec-15         ] - Starting cleanup of artifacts with expiration time =< 1636027935000
      2021-11-04T12:12:15.001Z [jfrt ] [DEBUG] [55ead5b6fad6e505] [a.a.r.c.ArchivedItemCleaner:35] [art-exec-15         ] - Fetching items...
      2021-11-04T12:12:15.003Z [jfrt ] [DEBUG] [55ead5b6fad6e505] [a.a.r.c.ArchivedItemCleaner:35] [art-exec-15         ] - Fetched items size is 1
      2021-11-04T12:12:15.004Z [jfrt ] [DEBUG] [55ead5b6fad6e505] [a.a.r.c.ArchivedItemCleaner:35] [art-exec-15         ] - Start items processing...
      2021-11-04T12:12:15.004Z [jfrt ] [DEBUG] [55ead5b6fad6e505] [a.a.r.c.ArchivedItemCleaner:48] [art-exec-15         ] - Undeploying expired artifact: iiukwhws_YHqTSfN-repo:YHqTSfN-archive.txt...
      2021-11-04T12:12:15.014Z [jfrt ] [INFO ] [55ead5b6fad6e505] [a.a.r.c.ArchivedItemCleaner:57] [art-exec-15         ] - Expired artifact iiukwhws_YHqTSfN-repo:YHqTSfN-archive.txt was successfully undeployed
      2021-11-04T12:12:15.015Z [jfrt ] [DEBUG] [55ead5b6fad6e505] [a.a.r.c.ArchivedItemCleaner:35] [art-exec-15         ] - Fetched items successfully processed by consumer
      2021-11-04T12:12:15.015Z [jfrt ] [DEBUG] [55ead5b6fad6e505] [a.a.r.c.ArchivedItemCleaner:35] [art-exec-15         ] - Batch processing took 14 millis
      2021-11-04T12:12:15.016Z [jfrt ] [DEBUG] [55ead5b6fad6e505] [a.a.r.c.ArchivedItemCleaner:35] [art-exec-15         ] - Fetching items...
      2021-11-04T12:12:15.017Z [jfrt ] [DEBUG] [55ead5b6fad6e505] [a.a.r.c.ArchivedItemCleaner:35] [art-exec-15         ] - Fetched items size is 0
      2021-11-04T12:12:15.018Z [jfrt ] [DEBUG] [55ead5b6fad6e505] [a.a.r.c.ArchivedItemCleaner:35] [art-exec-15         ] - No fetched items. Stop processing
      2021-11-04T12:12:15.018Z [jfrt ] [DEBUG] [55ead5b6fad6e505] [a.a.r.c.ArchivedItemCleaner:35] [art-exec-15         ] - Batch processing took 2 millis
      2021-11-04T12:12:15.019Z [jfrt ] [DEBUG] [55ead5b6fad6e505] [a.a.r.c.ArchivedItemCleaner:37] [art-exec-15         ] - Cleanup with expiration time 1636027935000 is finished
      

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              uriahl Uriah Levy (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

                  Connection: RTFACT Sync
                  RTMID-26501 -
                  SYNCHRONIZED
                  • Last Sync Date: