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


##########
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:
   for another one: 
   
   **Should we keep the behavior of timestamp and unmatched version?**
   
   the older broker which does not know either `EARLIEST_LOCAL_TIMESTAMP` or 
`LATEST_TIERED_TIMESTAMP` will process the timestamp "flag" as normal timestamp 
(do the search). That means the new broker will return "different" result - 
that seems to be a kind of behavior broken - the request having old version 
should be treated as "old" behavior
   
   



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