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

Uploading docker image to Federated repo does not sync to the federated members if the repo name is >= 34 chars

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: 7.31.10
    • Fix Version/s: None
    • Component/s: Artifactory
    • Labels:
      None
    • Severity:
      High
    • Location:
      External

      Description

      What is the expected behavior?
      Able to create and use a federated repository with a name that is 64 characters long.

      *Steps to reproduce: *
      1. Created a federated repo: type Docker with name (34 characters only) , example: devtools-testing-docker-prod-local
      2. Pushed a few images to Artifactory cluster A
      3. Observed that catalog index is not created in cluster B due to the error:

       2022-03-17T11:35:43.444Z [jfrt ] [INFO ] [2c51d0e91ad3d0fa] [.AsyncWorkQueueServiceImpl:247] [WorkQueueJob        ] - Executing Docker Catalog Index Federated devtools-testing-docker-prod-local stuck tasks: 1
      2022-03-17T11:35:43.446Z [jfrt ] [WARN ] [1c714b55fd71a7e9] [o.a.w.WorkQueueImpl:194       ] [art-exec-fed-284    ] - Error occurred while promoting queue items: Category Docker Catalog Index Federated devtools-testing-docker-prod-local exceeds maximum allowed length of 64.
      

      category column in the distributed_locks Artifactory table where HA instance maintains locks;In this case it seems that we attempt to add a lock and the category of this lock is created from 3 parts above exceeds the limit of 64 characters.  

      CREATE UNLOGGED TABLE public.distributed_locks ( category varchar(64) NOT NULL, lock_key varchar(255) NOT NULL, "owner" varchar(64) NOT NULL, owner_thread int8 NOT NULL, owner_thread_name varchar(64) NOT NULL, acquire_time int8 NOT NULL, CONSTRAINT locks_pk PRIMARY KEY (category, lock_key));

      Environment Details
      1. HA environment

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              sivas Siva Singaravelan
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

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