mirror of https://github.com/apache/kafka.git
KAFKA-16752: [MINOR] Addressed additional review comments (#16891)
Reviewers: Andrew Schofield <aschofield@confluent.io>, Jun Rao <junrao@gmail.com>
This commit is contained in:
parent
21dd5cd421
commit
011d35237c
|
@ -1163,7 +1163,7 @@ public class SharePartition {
|
||||||
inFlightBatch, groupId, topicIdPartition);
|
inFlightBatch, groupId, topicIdPartition);
|
||||||
return Optional.of(new InvalidRecordStateException("The batch cannot be acknowledged. The subset batch is not in the acquired state."));
|
return Optional.of(new InvalidRecordStateException("The batch cannot be acknowledged. The subset batch is not in the acquired state."));
|
||||||
}
|
}
|
||||||
// The request batch is a subset or per offset state is managed hence update
|
// The request batch is a subset and requires per offset state hence initialize
|
||||||
// the offsets state in the in-flight batch.
|
// the offsets state in the in-flight batch.
|
||||||
inFlightBatch.maybeInitializeOffsetStateUpdate();
|
inFlightBatch.maybeInitializeOffsetStateUpdate();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue