MCPcopy Create free account
hub / github.com/OpenTSDB/asynchbase / getRootRegion

Method getRootRegion

src/HBaseClient.java:4540–4551  ·  view source on GitHub ↗

Attempts to lookup the ROOT region (or META, if 0.95 and up). @return true if a lookup was kicked off, false if not because we weren't connected to ZooKeeper.

()

Source from the content-addressed store, hash-verified

4538 * weren't connected to ZooKeeper.
4539 */
4540 private boolean getRootRegion() {
4541 synchronized (this) {
4542 if (zk != null) {
4543 LOG.debug("Finding the ROOT or META region in ZooKeeper");
4544 final ZKCallback cb = new ZKCallback();
4545 zk.getData(base_path + "/root-region-server", this, cb, null);
4546 zk.getData(base_path + "/meta-region-server", this, cb, null);
4547 return true;
4548 }
4549 }
4550 return false;
4551 }
4552
4553 }
4554

Callers 2

processMethod · 0.95
runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected