HBase-代码分析-客户端-读链路

HTable.get方法-->Callable->get中实现的具体call方法

==>

ProtobufUtil.get(getStub(), getLocation().getRegionInfo().getRegionName(),
  getReq, controller);

==>

 

new RegionServerCallable 构造一个callable

下面return rpcCallerFactory. newCaller.callWithRetries  构造一个caller,并执行里面的支持重试操作的RPC方法

 

 

callWithRetries中执行

 

for(重试循环){

      beforeCall();

      callable.prepare(tries != 0); // if called with false, check table status on ZK

      return callable.call();

}

你可能感兴趣的:(nosql,hadoop,hbase)