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