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

/api/storageinfo duplicates the repositories list if sharding is used

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 4.13.0
    • Fix Version/s: None
    • Component/s: Filestore
    • Labels:
      None

      Description

      If you use sharding, the /api/storageinfo endpoint will respond with a duplicated list of repositories. We should remove this duplication.

      To reproduce -
      1.Use a simple sharding binarystore.xml:
      <config version="4">
      <chain>
      <provider id="sharding" type="sharding">
      <redundancy>1</redundancy>
      <readBehavior>roundRobin</readBehavior>
      <writeBehavior>percentageFreeSpace</writeBehavior>
      <sub-provider id="shard-fs-1" type="state-aware"/>
      <sub-provider id="shard-fs-2" type="state-aware"/>
      </provider>
      </chain>
      <provider id="shard-fs-1" type="state-aware">
      <fileStoreDir>filestore1</fileStoreDir>
      </provider>
      <provider id="shard-fs-2" type="state-aware">
      <fileStoreDir>filestore2</fileStoreDir>
      </provider>
      </config>

      2.curl -uadmin:password http://localhost:8080/artifactory/api/storageinfo

      Notice how the storageSummary section is duplicated by the amount of shards. While this duplication is expected, we can probably avoid sending back the "repositoriesSummaryList" section twice.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                uriahl Uriah Levy
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: