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:
Pankaj 2021-04-08 16:27:17 +05:30 committed by Viraj Jasani
parent 94a19b5b35
commit 89fa8e7333
No known key found for this signature in database
GPG Key ID: B3D6C0B41C8ADFD5
1 changed files with 2 additions and 2 deletions

View File

@ -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,