Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.94.0
-
None
-
None
-
Reviewed
-
RS embedded thrift server can have redirecting turned on/off with "hbase.regionserver.thrift.redirect" (default: false)
Description
HRegionThriftServer.getRowWithColumnsTs() redirects the request to the correct region server if it has landed on the wrong region-server. With this approach the smart-client will never get a NotServingRegionException and it will never be able to invalidate its cache. It will indefinitely send the request to the wrong region server and the wrong region server will always be redirecting it.
Either redirects should be turned off and the client should react to NotServingRegionExceptions.
Or somehow a flag should be set in the response telling the client to refresh its cache.