From c2834851107edb01257ed723c63bbe3bd770ed13 Mon Sep 17 00:00:00 2001 From: shunza Date: Sat, 20 Jul 2019 20:05:26 +0800 Subject: [PATCH] fix hbase error not exist. --- pkg/database/hbase/metrics.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/database/hbase/metrics.go b/pkg/database/hbase/metrics.go index e94f4f47c..4867271d5 100644 --- a/pkg/database/hbase/metrics.go +++ b/pkg/database/hbase/metrics.go @@ -37,12 +37,12 @@ func codeFromErr(err error) string { switch err { case gohbase.ErrClientClosed: code = "client_closed" - case gohbase.ErrConnotFindRegion: + case gohbase.ErrCannotFindRegion: code = "connot_find_region" case gohbase.TableNotFound: code = "table_not_found" - case gohbase.ErrRegionUnavailable: - code = "region_unavailable" + //case gohbase.ErrRegionUnavailable: + // code = "region_unavailable" } return code }