)]}'
{
  "commit": "84d25c6a34ba543b1d765ee6be4f92de15cb39b9",
  "tree": "cafa6688d5256cd0eff11f48be531ac038d4a00a",
  "parents": [
    "37ca1e1fdc374f56de7387ef00ab1909d0a0fa6d"
  ],
  "author": {
    "name": "Luca Milanesio",
    "email": "luca.milanesio@gmail.com",
    "time": "Sun Jun 15 11:03:45 2025 +0100"
  },
  "committer": {
    "name": "Luca Milanesio",
    "email": "luca.milanesio@gmail.com",
    "time": "Tue Jun 17 03:26:09 2025 -0700"
  },
  "message": "Do not fail reindexing changes when the patch-sets aren\u0027t replicated yet\n\nDepending on how replication is configured, the changes\u0027 /meta refs\ncould be replicated before their associated patch sets. Every time a\nchange is replicated, the pull-replication plugin emits a\nfetch-ref-replicated event related to the change\u0027s refs.\n\nWhen creating a new change, two refs are replicated:\n1. refs/changes/\u003cNN\u003e/\u003cNNNN\u003e/1 (first patch-set of the change)\n2. refs/changes/\u003cNN\u003e/\u003cNNNN\u003e/meta (change meta-ref)\n\nWhen the above refs are replicated out of order, with 2. replicated\nbefore 1., then the multi-site plugin tried to reindex the change in an\ninconsistent state, throwing a \"missing unknown\" error and resulting\nwith a stale index.\n\nInstead of reacting only to \u0027meta\u0027 refs replication, consider all the\nrefs\u0027 replications events associated with a change and ignore the\nIndexing errors associated with a missing or unknown SHA1.\n\nBug: Issue 425059627\nChange-Id: I9a6337c1cecb52df832d64b2c7bb30e97ba7916a\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d45f52692cde41db9febe78195a8aa5c7c3e576f",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/multisite/index/FetchRefReplicatedEventHandler.java",
      "new_id": "f47cea5484c3fdee43c729c067e50c17eb266b74",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/multisite/index/FetchRefReplicatedEventHandler.java"
    },
    {
      "type": "modify",
      "old_id": "47b6072a68329d246c3907e717b971dbacce6039",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/plugins/multisite/index/FetchRefReplicatedEventHandlerTest.java",
      "new_id": "e7e0d8a627081a122e40bd1613e8f799831c1bb3",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/multisite/index/FetchRefReplicatedEventHandlerTest.java"
    }
  ]
}
