)]}'
{
  "commit": "20bc91d0bd11dd2c9b77aedb6bebb02fa67f70f4",
  "tree": "7c65807b78662745344dc9b0dd995e9fd885ff07",
  "parents": [
    "e780ae61cbbba3f88558a3620065d1fcdc0768c8"
  ],
  "author": {
    "name": "Luca Milanesio",
    "email": "luca.milanesio@gmail.com",
    "time": "Sat Jul 13 22:32:05 2019 +0100"
  },
  "committer": {
    "name": "Luca Milanesio",
    "email": "luca.milanesio@gmail.com",
    "time": "Tue Jul 16 09:27:59 2019 +0100"
  },
  "message": "Cancel pending replications upon shutdown\n\nWhen the replication plugin is stopped or reloaded,\nmark all the current replications as cancelled.\nHaving pending and unmanaged replication tasks is quite\ndangerous for two reasons:\n\n1. The result of the replication isn\u0027t accounted and\n   properly managed, because the associated objects won\u0027t\n   be there anymore (pending replications, runway, ...)\n\n2. The destination configuration could have changed completely\n   (auto-reload use-case) or even not exist anymore: the\n   replication event would thus perform an unwanted and\n   unconfigured operation.\n\nWith regards to the replication events that are already\non the runway, there is no value in cancelling them. Just flag\nthem as cancelled so that, once they finish, can be clearly\nrecognized.\n\nChange-Id: Iabc17d375011cbc61f8c642ae07d3d018b49fc69\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "9aab0f62c780c2af46872ff5aaf9f169c66d6aed",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java",
      "new_id": "e8929d5f356c5ae850a252cfcb65d6bb3aab8407",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java"
    },
    {
      "type": "modify",
      "old_id": "889e94d6c742be5af473abb1105d2765140017b2",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/replication/PushOne.java",
      "new_id": "9fe497b3adbe30c764da3fed04c56ee9d6dcae41",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/replication/PushOne.java"
    }
  ]
}
