commit | 705fb8323b4a3e988a88093a2e4bc19f07ed5cfe | [log] [tgz] |
---|---|---|
author | Steve Loughran <stevel@cloudera.com> | Tue Mar 19 17:18:07 2024 +0000 |
committer | GitHub <noreply@github.com> | Tue Mar 19 17:18:07 2024 +0000 |
tree | 319abb57ea22f11f2460b8b73318dd17859a470f | |
parent | ff3f2255d2066ca6807c0ae5331ed7901cb9efd6 [diff] |
HADOOP-19119. Spotbugs: possible NPE in org.apache.hadoop.crypto.key.kms.ValueQueue.getSize() (#6642) Spotbugs is mistaken here as it doesn't observer the read/write locks used to manage exclusive access to the maps. * cache the value between checks * tag as @VisibleForTesting Contributed by Steve Loughran