)]}'
{
  "commit": "9c514fa6db9763cfa7b852e350ffb441bbc2dc79",
  "tree": "fd490a862a645b6c32e321ba6d9215d895816b70",
  "parents": [
    "0db87721314c2c5f05f68bf59fe26333c25c16bd"
  ],
  "author": {
    "name": "Sasa Zivkov",
    "email": "sasa.zivkov@sap.com",
    "time": "Wed Jul 29 17:52:07 2026 +0200"
  },
  "committer": {
    "name": "Sasa Zivkov",
    "email": "sasa.zivkov@sap.com",
    "time": "Wed Aug 05 11:03:59 2026 +0200"
  },
  "message": "ForwardedIndexChangeHandler: check SHA visibility before reindexing\n\nMove the isChangeUpToDate() check before reindexIfStale() so that\nstaleness is detected upfront. Previously, reindexIfStale() was called\nunconditionally and isChangeUpToDate() served as a post-condition: if\nthe JGit cache happened to refresh between the two calls, the post-check\nwould pass and we would accept a result where no actual reindexing took\nplace.\n\nWith this change, if the meta SHA is not yet visible, indexOnce()\nreturns false immediately and we proceed with the next (re)try.\nreindexIfStale() is only called once the SHA is confirmed visible,\nmaking the retry logic effective.\n\nBug: Issue 541924680\nChange-Id: If546dbacbfc9635a5ae9ac10ec5848486ce5cd4c\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "fd654ba876e5cacc53fe2fc36cb6760100ab862c",
      "old_mode": 33188,
      "old_path": "src/main/java/com/ericsson/gerrit/plugins/highavailability/forwarder/ForwardedIndexChangeHandler.java",
      "new_id": "102ee772b4ff1c1327edd457580bb4f8bdc8e52c",
      "new_mode": 33188,
      "new_path": "src/main/java/com/ericsson/gerrit/plugins/highavailability/forwarder/ForwardedIndexChangeHandler.java"
    },
    {
      "type": "modify",
      "old_id": "6a3a34830efd9487e87b7ea6398498e0f701694a",
      "old_mode": 33188,
      "old_path": "src/test/java/com/ericsson/gerrit/plugins/highavailability/forwarder/ForwardedIndexChangeHandlerTest.java",
      "new_id": "446a1e9112a53525ec99ef4319629d3d07959d95",
      "new_mode": 33188,
      "new_path": "src/test/java/com/ericsson/gerrit/plugins/highavailability/forwarder/ForwardedIndexChangeHandlerTest.java"
    }
  ]
}
