You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Chia-Ping Tsai (Jira)" <ji...@apache.org> on 2024/08/12 00:07:00 UTC
[jira] [Assigned] (KAFKA-17315) Align the behavior of expiring delegation token
[ https://issues.apache.org/jira/browse/KAFKA-17315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chia-Ping Tsai reassigned KAFKA-17315:
--------------------------------------
Assignee: TengYao Chi (was: Chia-Ping Tsai)
> 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: TengYao Chi
> 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)