)]}'
{
  "commit": "4a82f8c7db0c3c3064d1cb754afba7903a395aeb",
  "tree": "844e477cd9430c14ea8bd6e7d281a3b72a6643ae",
  "parents": [
    "a8d97bc059e07025eff53479489cef64a5fbc514"
  ],
  "author": {
    "name": "Antonio Barone",
    "email": "syntonyze@gmail.com",
    "time": "Fri Oct 04 22:20:55 2024 +0200"
  },
  "committer": {
    "name": "Antonio Barone",
    "email": "syntonyze@gmail.com",
    "time": "Mon Oct 07 14:17:26 2024 +0000"
  },
  "message": "Check for existence of change\u0027s target SHA1 for reindexing\n\nWhen the target branch of a change was advancing rapidly,\nthe reindexing retries applied by the ForwardedIndexChangeHandler\nwere continuing potentially forever as they were waiting to\nsee the target branch\u0027s expected SHA1 for the event.\n\nWhilst it is vital to wait for a target branch SHA1 to appear before\nreindexing a change on a remote site, it isn\u0027t essential to have\nthat SHA1 being *exactly* the tip of the target branch, as that\nmoment can be easily missed.\n\nExample:\n- Create two changes C1 and C2 in parallel and push them with\n  %submit option\n- The changes C1 and C2 will trigger the rapid advance of their\n  target SHA1\n- The other nodes may reindex C1 but not C2 because the target branch\n  has advanced more than expected\n\nChecking simply the existence of the target SHA1 in the repository\nis enough to satisfy the conditions for the change being reindexed.\n\nThis is a cherry-pick from multi-site afb24239.\nThe change has been adapted to high-availability: use the same checking\nlogic described above also against the change meta ref.\n\nChange-Id: Ie45c2f1e209952ae7f2a91dc6b65c0c153f48376\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "1a2ebf73b788bf97858c4edaaa7deb242bbe0152",
      "old_mode": 33188,
      "old_path": "src/main/java/com/ericsson/gerrit/plugins/highavailability/index/ChangeCheckerImpl.java",
      "new_id": "a8ba722f59a8e375072fa963010c3750c9c791e0",
      "new_mode": 33188,
      "new_path": "src/main/java/com/ericsson/gerrit/plugins/highavailability/index/ChangeCheckerImpl.java"
    }
  ]
}
