)]}'
{
  "commit": "b4c78fbb5a4996ee7b1483c846bf58d685cb1213",
  "tree": "79ecf5ecdb60a6e880386cf9667fc23b09170392",
  "parents": [
    "77bb78c662f8c25f55b1294ef58de8a7f537f68f"
  ],
  "author": {
    "name": "Antonio Barone",
    "email": "syntonyze@gmail.com",
    "time": "Tue Jun 29 16:19:21 2021 +0200"
  },
  "committer": {
    "name": "Antonio Barone",
    "email": "syntonyze@gmail.com",
    "time": "Wed Jun 30 12:03:58 2021 +0200"
  },
  "message": "Stop using Gerrit instanceId as partition key\n\nUsing the Gerrit instanceId as partition key might lead to\nIllegalArgument exceptions, due to the fact that it can be null (since\nit is an optional configuration).\n\nMoreover, using _only_ the instanceId would lead to a suboptimal\nsharding of the messages across different kinesis shards, in case where\nthe majority of messages would come from one active gerrit instance.\n\nSet the partition key to the event type, which is always present and\nprovides a better distribution than instanceId.\n\nBug: Issue 14697\nChange-Id: I467e79d8c98958cc68911a54a684ae35afe26547\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "9846850581c28a56ae4bb0b71c7259586a19b6ea",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/kinesis/KinesisBrokerApi.java",
      "new_id": "0316c062fa9899ebf11584a37cbfa39515de0409",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/kinesis/KinesisBrokerApi.java"
    },
    {
      "type": "modify",
      "old_id": "d54540d67e1120abab2864c71e8757f7b71c53af",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/kinesis/KinesisPublisher.java",
      "new_id": "158f8acddb0a31103ae48a6f1505f0ea82c1c34b",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/kinesis/KinesisPublisher.java"
    },
    {
      "type": "modify",
      "old_id": "6b0eeb47e9638a6ca9e7ae7950eab3bba95f22c5",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/plugins/kinesis/KinesisEventsIT.java",
      "new_id": "940cd317bc4f11a265d7e6c9ca25a25c8de7ca3d",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/kinesis/KinesisEventsIT.java"
    }
  ]
}
