[
https://issues.apache.org/jira/browse/KAFKA-17415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
TaiJuWu updated KAFKA-17415:
----------------------------
Description:
Both of zk and kraft modes do not handle the overflow, and hence setting a
large max life time will cause a negative expired timestamp and negative max
timestamp. That is unexpected behavior.
[0]
[https://github.com/apache/kafka/blob/0123bdcf06d2554ea62ba3a75af7c4b17eb4d23a/metadata/src/main/java/org/apache/kafka/controller/DelegationTokenControlManager.java#L191|https://github.com/apache/kafka/blob/4e846038a6313e28d3b3ee3d3c3163d1f26356bf/metadata/src/main/java/org/apache/kafka/controller/DelegationTokenControlManager.java#L188]
[1]
[https://github.com/apache/kafka/blob/0123bdcf06d2554ea62ba3a75af7c4b17eb4d23a/core/src/main/scala/kafka/server/DelegationTokenManagerZk.scala#L182|https://github.com/apache/kafka/blob/0123bdcf06d2554ea62ba3a75af7c4b17eb4d23a/core/src/main/scala/kafka/server/DelegationTokenManagerZk.scala#L297]
was:
Both of zk and kraft modes do not handle the overflow, and hence setting a
large max life time will cause a negative expired timestamp and negative max
timestamp. That is unexpected behavior.
[0]
https://github.com/apache/kafka/blob/0123bdcf06d2554ea62ba3a75af7c4b17eb4d23a/metadata/src/main/java/org/apache/kafka/controller/DelegationTokenControlManager.java#L191
[1]
https://github.com/apache/kafka/blob/0123bdcf06d2554ea62ba3a75af7c4b17eb4d23a/core/src/main/scala/kafka/server/DelegationTokenManagerZk.scala#L182
> Avoid overflow of expiried timestamp
> ------------------------------------
>
> Key: KAFKA-17415
> URL: https://issues.apache.org/jira/browse/KAFKA-17415
> Project: Kafka
> Issue Type: Bug
> Reporter: Chia-Ping Tsai
> Assignee: TengYao Chi
> Priority: Major
> Fix For: 4.0.0
>
>
> Both of zk and kraft modes do not handle the overflow, and hence setting a
> large max life time will cause a negative expired timestamp and negative max
> timestamp. That is unexpected behavior.
> [0]
> [https://github.com/apache/kafka/blob/0123bdcf06d2554ea62ba3a75af7c4b17eb4d23a/metadata/src/main/java/org/apache/kafka/controller/DelegationTokenControlManager.java#L191|https://github.com/apache/kafka/blob/4e846038a6313e28d3b3ee3d3c3163d1f26356bf/metadata/src/main/java/org/apache/kafka/controller/DelegationTokenControlManager.java#L188]
> [1]
> [https://github.com/apache/kafka/blob/0123bdcf06d2554ea62ba3a75af7c4b17eb4d23a/core/src/main/scala/kafka/server/DelegationTokenManagerZk.scala#L182|https://github.com/apache/kafka/blob/0123bdcf06d2554ea62ba3a75af7c4b17eb4d23a/core/src/main/scala/kafka/server/DelegationTokenManagerZk.scala#L297]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
