ezhou413 commented on code in PR #22468:
URL: https://github.com/apache/kafka/pull/22468#discussion_r3360097239
##########
clients/src/main/java/org/apache/kafka/clients/consumer/ConsumerRecords.java:
##########
@@ -76,6 +93,14 @@ public List<ConsumerRecord<K, V>> records(TopicPartition
partition) {
* @return The next offsets that the consumer will consume
*/
public Map<TopicPartition, OffsetAndMetadata> nextOffsets() {
+ if (this.tainted && TAINTED_NEXT_OFFSETS_LOGGED.compareAndSet(false,
true)) {
+ log.error("ConsumerRecords#nextOffsets() returned empty because
this instance was built with the " +
Review Comment:
I recall KIP-1071 did something similar (logging a warning) when it was
still in preview so I tried to follow that. I'll switch to the time based
approach
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]