This is an automated email from the ASF dual-hosted git repository.
apurtell pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2 by this push:
new 60f0115 Amend HBASE-26353 Support loadable dictionaries in
hbase-compression-zstd (#3787)
60f0115 is described below
commit 60f01153f7e9b9ff1f82d235c09e2ac35a704c8d
Author: Andrew Purtell <[email protected]>
AuthorDate: Fri Oct 29 09:19:08 2021 -0700
Amend HBASE-26353 Support loadable dictionaries in hbase-compression-zstd
(#3787)
Resolve a new spotbugs warning in DictionaryCache
Signed-off-by: Andrew Purtell <apache.org>
---
.../main/java/org/apache/hadoop/hbase/io/compress/DictionaryCache.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/hbase-common/src/main/java/org/apache/hadoop/hbase/io/compress/DictionaryCache.java
b/hbase-common/src/main/java/org/apache/hadoop/hbase/io/compress/DictionaryCache.java
index 3d3fb2a..f9508bf 100644
---
a/hbase-common/src/main/java/org/apache/hadoop/hbase/io/compress/DictionaryCache.java
+++
b/hbase-common/src/main/java/org/apache/hadoop/hbase/io/compress/DictionaryCache.java
@@ -46,7 +46,7 @@ public final class DictionaryCache {
public static final String RESOURCE_SCHEME = "resource://";
private static final Logger LOG =
LoggerFactory.getLogger(DictionaryCache.class);
- private static LoadingCache<String, byte[]> CACHE;
+ private static volatile LoadingCache<String, byte[]> CACHE;
private DictionaryCache() { }