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 {
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
}

Loading…
Cancel
Save