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

Build Info "created" timestamp is lost during replications

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.13.0
    • Component/s: Build Info, Replication
    • Labels:
      None
    • Regression:
      Yes
    • Sprint:
      Pam - Quality 4

      Description

      Symptoms: The same AQL query returns different results depending on which Artifactory the query runs against.

      Steps to reproduce:

      1. Have 2 Artifactory installations, ART-Source and ART-Target
      2. Produce a number of builds to query against ART-Source
      3. Set up and run Build Replications (Replicate stats = true):

      curl -u admin -H"Content-type: application/json" -XPUT --data '{"url":"http://<TARGET>/artifactory/artifactory-bulid-info","username":"admin","password":"password","cronExp":"0 0 12 * * ?", "enableEventReplication": true, "syncStatistics" : true}' -vvv http://<SOURCE>/artifactory/api/replications/artifactory-build-info

      curl -uadmin:password -XPOST -H"Content-type: application/json" --data '[

      {"url":"<TARGET>/artifactory/artifactory-build-info", "username":"admin", "password":"password"}

      ]' http://<SOURCE>:12137/artifactory/api/replication/execute/artifactory-build-info -vv

      1. Run the same AQL query against the two installations:

      (AQL.txt)

      builds.find({"name":{"$eq":"TEST-system-build-TEST"}}).include("created","number","name","url").sort(

      {"$desc":["created"]}

      ).limit(50)

      curl -uadmin:password -H"Content-type: text/plain" --data @aql.txt http://<SOURCE>/artifactory/api/search/aql

      {
      "results" : [

      { "build.created" : "2019-04-22T20:49:00.725Z", "build.name" : "TEST-system-build-TEST", "build.number" : "3" }

      ,[...]

      curl -uadmin:password -H"Content-type: text/plain" --data @aql.txt http://<Target>/artifactory/api/search/aql

      {
      "results" : [

      { "build.created" : "2019-04-22T20:51:41.385Z", "build.name" : "TEST-system-build-TEST", "build.number" : "3" }

      [...]

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rotemk Rotem Kfir
                Reporter:
                patrickr Patrick Russell
                Assigned QA:
                Alex Dvorkin
              • Votes:
                2 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: