Stop using Gerrit instanceId as partition key

Using the Gerrit instanceId as partition key might lead to
IllegalArgument exceptions, due to the fact that it can be null (since
it is an optional configuration).

Moreover, using _only_ the instanceId would lead to a suboptimal
sharding of the messages across different kinesis shards, in case where
the majority of messages would come from one active gerrit instance.

Set the partition key to the event type, which is always present and
provides a better distribution than instanceId.

Bug: Issue 14697
Change-Id: I467e79d8c98958cc68911a54a684ae35afe26547
3 files changed
tree: 79ecf5ecdb60a6e880386cf9667fc23b09170392
  1. src/
  2. BUILD
  3. external_plugin_deps.bzl
  4. Jenkinsfile
  5. LICENSE
  6. README.md
README.md

events-aws-kinesis

Provide producer and consumer of events streamed over AWS kinesis.

Build

Information on how to build this plugin can be found here

Configuration

Information on how to configure this plugin can be found here