This is an automated email from the ASF dual-hosted git repository.
larsh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/master by this push:
new 9c82a65 HBASE-23364 HRegionServer sometimes does not shut down.
9c82a65 is described below
commit 9c82a65b29696a7b42214703794ead9c0452dec8
Author: Lars Hofhansl <[email protected]>
AuthorDate: Thu Dec 5 18:14:48 2019 -0800
HBASE-23364 HRegionServer sometimes does not shut down.
---
.../src/main/java/org/apache/hadoop/hbase/util/LossyCounting.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/hbase-server/src/main/java/org/apache/hadoop/hbase/util/LossyCounting.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/util/LossyCounting.java
index d730a01..be9bf42 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/util/LossyCounting.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/util/LossyCounting.java
@@ -34,6 +34,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import
org.apache.hbase.thirdparty.com.google.common.annotations.VisibleForTesting;
+import
org.apache.hbase.thirdparty.com.google.common.util.concurrent.ThreadFactoryBuilder;
/**
* LossyCounting utility, bounded data structure that maintains approximate
high frequency
@@ -75,7 +76,8 @@ public class LossyCounting<T> {
this.data = new ConcurrentHashMap<>();
this.listener = listener;
calculateCurrentTerm();
- executor = Executors.newSingleThreadExecutor();
+ executor = Executors.newSingleThreadExecutor(
+ new
ThreadFactoryBuilder().setDaemon(true).setNameFormat("lossy-count-%d").build());
}
public LossyCounting(String name, LossyCountingListener listener) {