FrankYang0529 commented on code in PR #16873:
URL: https://github.com/apache/kafka/pull/16873#discussion_r1722038773


##########
core/src/main/scala/kafka/server/KafkaApis.scala:
##########
@@ -1170,6 +1174,8 @@ class KafkaApis(val requestChannel: RequestChannel,
           debug(s"OffsetRequest with correlation id $correlationId from client 
$clientId on partition $topicPartition " +
               s"failed because the partition is duplicated in the request.")
           buildErrorResponse(Errors.INVALID_REQUEST, partition)
+        } else if 
(timestampMinSupportedVersion.contains(partition.timestamp()) && version < 
timestampMinSupportedVersion(partition.timestamp())) {

Review Comment:
   Hi @chia7712, thanks for the great questions! First, we should have 
consensus about "how to handle a new defined behavior which was undefined in 
before"? So we can know how to answer further questions.
   
   IIRC, for negative timestamp, we don't support it in Kafka. I found 
[KIP-228](https://cwiki.apache.org/confluence/display/KAFKA/KIP-228%2BNegative%2Brecord%2Btimestamp%2Bsupport)
 about it, but it looks like it's still under discussion. IMHO, if a behavior 
is unexpected, we may need to add some limitations to it in a newer version, so 
we can minimize unexpected result.



-- 
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]

Reply via email to