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();

}

发布了52 篇原创文章 · 获赞 4 · 访问量 5万+

猜你喜欢

转载自blog.csdn.net/Gloria_y/article/details/90082183