fix hbase error not exist.

pull/223/head
shunza 6 years ago
parent f75296e109
commit c283485110
  1. 6
      pkg/database/hbase/metrics.go

@ -37,12 +37,12 @@ func codeFromErr(err error) string {
switch err { switch err {
case gohbase.ErrClientClosed: case gohbase.ErrClientClosed:
code = "client_closed" code = "client_closed"
case gohbase.ErrConnotFindRegion: case gohbase.ErrCannotFindRegion:
code = "connot_find_region" code = "connot_find_region"
case gohbase.TableNotFound: case gohbase.TableNotFound:
code = "table_not_found" code = "table_not_found"
case gohbase.ErrRegionUnavailable: //case gohbase.ErrRegionUnavailable:
code = "region_unavailable" // code = "region_unavailable"
} }
return code return code
} }

Loading…
Cancel
Save