Skip to content

Commit

Permalink
downgrade kafka clients (#1872)
Browse files Browse the repository at this point in the history
  • Loading branch information
moscicky committed Jun 20, 2024
1 parent a478894 commit 5754069
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ allprojects {
targetCompatibility = JavaVersion.VERSION_17

project.ext.versions = [
kafka : '3.6.2',
kafka : '2.8.2',
guava : '33.1.0-jre',
jackson : '2.17.0',
jersey : '3.1.6',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public void send(ProducerRecord<K, V> producerRecord,

private static RecordMetadata exceptionalRecordMetadata(CachedTopic cachedTopic) {
var tp = new TopicPartition(cachedTopic.getKafkaTopics().getPrimary().name().asString(), RecordMetadata.UNKNOWN_PARTITION);
return new RecordMetadata(tp, -1, -1, RecordBatch.NO_TIMESTAMP, -1, -1);
return new RecordMetadata(tp, -1, -1, RecordBatch.NO_TIMESTAMP, -1L, -1, -1);
}

List<PartitionInfo> loadPartitionMetadataFor(String topic) {
Expand Down

0 comments on commit 5754069

Please sign in to comment.