Browse Source

Minor: fix compilation error in KAFKA-6254

pull/4537/head
Jun Rao 7 years ago
parent
commit
caf03d642b
  1. 2
      clients/src/test/java/org/apache/kafka/clients/consumer/internals/FetcherTest.java

2
clients/src/test/java/org/apache/kafka/clients/consumer/internals/FetcherTest.java

@ -2183,7 +2183,7 @@ public class FetcherTest { @@ -2183,7 +2183,7 @@ public class FetcherTest {
long lastStableOffset, long logStartOffset, int throttleTime) {
Map<TopicPartition, FetchResponse.PartitionData> partitions = Collections.singletonMap(tp,
new FetchResponse.PartitionData(error, hw, lastStableOffset, logStartOffset, null, records));
return new FetchResponse(new LinkedHashMap<>(partitions), throttleTime);
return new FetchResponse(Errors.NONE, new LinkedHashMap<>(partitions), throttleTime, INVALID_SESSION_ID);
}
private MetadataResponse newMetadataResponse(String topic, Errors error) {

Loading…
Cancel
Save