Details
-
Sub-task
-
Status: Patch Available
-
Major
-
Resolution: Unresolved
-
3.3.0
-
None
Description
AbstractDelegationTokenSecretManager.updateCurrentKey increments the current key id and creates the new delegation key in two distinct synchronized blocks.
This means that other threads can see the class in an inconsistent state, where the key for the current key id doesn't exist (yet).
For example the following method sometimes returns null when the token remover thread is between the two synchronized blocks:
@Override public DelegationKey getCurrentKey() { return getDelegationKey(getCurrentKeyId()); }
Also it is possible that updateCurrentKey is called from multiple threads at the same time so distinct keys can be generated with the same key id.
This issue is suspected to be the cause of the intermittent failure of TestLlapSignerImpl.testSigning - HIVE-22621.
Attachments
Attachments
Issue Links
- causes
-
HIVE-22621 Disable unstable tests
- Open
- links to