HBASE-25717 RegionServer aborted with due to ClassCastException (#3108)
Signed-off-by: stack <stack@apache.org> Signed-off-by: Viraj Jasani <vjasani@apache.org>
This commit is contained in:
parent
94a19b5b35
commit
89fa8e7333
|
@ -20,10 +20,10 @@
|
|||
package org.apache.hadoop.hbase.coprocessor;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.hadoop.conf.Configuration;
|
||||
import org.apache.hadoop.hbase.Cell;
|
||||
|
@ -58,7 +58,7 @@ public class MetaTableMetrics implements RegionCoprocessor {
|
|||
private MetricRegistry registry;
|
||||
private LossyCounting<String> clientMetricsLossyCounting, regionMetricsLossyCounting;
|
||||
private boolean active = false;
|
||||
private Set<String> metrics = new HashSet<>();
|
||||
private Set<String> metrics = ConcurrentHashMap.newKeySet();
|
||||
|
||||
enum MetaTableOps {
|
||||
GET, PUT, DELETE,
|
||||
|
|
Loading…
Reference in New Issue