Skip to content

Commit

Permalink
[kinesis] Improved partition key handling
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnarmorling committed Aug 30, 2018
1 parent 98fdee0 commit 4f01d0f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -114,7 +114,7 @@ private void sendRecord(SourceRecord record) {
message.put("key", record.key());
message.put("value", record.value());

String partitionKey = String.valueOf(record.key() != null ? record.key().hashCode() : new Object().hashCode());
String partitionKey = String.valueOf(record.key() != null ? record.key().hashCode() : -1);
final byte[] payload = valueConverter.fromConnectData("dummy", schema, message);

PutRecordRequest putRecord = new PutRecordRequest();
Expand Down

0 comments on commit 4f01d0f

Please sign in to comment.