MCPcopy Index your code
hub / github.com/OpenTSDB/asynchbase / retryGetRootRegionLater

Method retryGetRootRegionLater

src/HBaseClient.java:4302–4311  ·  view source on GitHub ↗

Schedule a timer to retry #getRootRegion after some time.

()

Source from the content-addressed store, hash-verified

4300
4301 /** Schedule a timer to retry {@link #getRootRegion} after some time. */
4302 private void retryGetRootRegionLater() {
4303 newTimeout(new TimerTask() {
4304 public void run(final Timeout timeout) {
4305 if (!getRootRegion()) { // Try to read the znodes
4306 connectZK(); // unless we need to connect first.
4307 }
4308 }
4309 }, config.getInt("hbase.zookeeper.getroot.retry_delay")
4310 /* milliseconds */);
4311 }
4312
4313 /**
4314 * Puts a watch in ZooKeeper to monitor the file of the -ROOT- region.

Callers 1

processResultMethod · 0.80

Calls 2

newTimeoutMethod · 0.45
getIntMethod · 0.45

Tested by

no test coverage detected