You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "TengYao Chi (Jira)" <ji...@apache.org> on 2024/08/11 23:51:00 UTC
[jira] [Commented] (KAFKA-17315) Align the behavior of expiring delegation token
[ https://issues.apache.org/jira/browse/KAFKA-17315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17872747#comment-17872747 ]
TengYao Chi commented on KAFKA-17315:
-------------------------------------
Hi [~chia7712]
I would like to give it a try, thanks
> Align the behavior of expiring delegation token
> -----------------------------------------------
>
> Key: KAFKA-17315
> URL: https://issues.apache.org/jira/browse/KAFKA-17315
> Project: Kafka
> Issue Type: Improvement
> Reporter: Chia-Ping Tsai
> Assignee: Chia-Ping Tsai
> Priority: Blocker
> Fix For: 4.0.0, 3.9.0
>
>
> In kraft mode, expiring delegation token (`expiryTimePeriodMs` < 0) has following different behavior to zk mode.
> 1. `ExpiryTimestampMs` is set to "expiryTimePeriodMs" [0] rather than "now" [1]
> 2. it throws exception directly if the token is expired already [2]. By contrast, zk mode does not. [3]
> [0] https://github.com/apache/kafka/blob/49fc14f6116a697550339a8804177bd9290d15db/metadata/src/main/java/org/apache/kafka/controller/DelegationTokenControlManager.java#L316
> [1] https://github.com/apache/kafka/blob/49fc14f6116a697550339a8804177bd9290d15db/core/src/main/scala/kafka/server/DelegationTokenManagerZk.scala#L292
> [2] https://github.com/apache/kafka/blob/49fc14f6116a697550339a8804177bd9290d15db/metadata/src/main/java/org/apache/kafka/controller/DelegationTokenControlManager.java#L305
> [3] https://github.com/apache/kafka/blob/49fc14f6116a697550339a8804177bd9290d15db/core/src/main/scala/kafka/server/DelegationTokenManagerZk.scala#L293
--
This message was sent by Atlassian Jira
(v8.20.10#820010)