Returns a newly allocated key to probe, to check a region is online. Sometimes we need to "poke" HBase to see if a region is online or a table exists. Given a key, we prepend some unique suffix to make it a lot less likely that we hit a real key with our probe, as doing so might have some implicati
(final byte[] key)
| 3707 | * AsyncHBase probes. |
| 3708 | */ |
| 3709 | private static byte[] probeKey(final byte[] key) { |
| 3710 | final byte[] testKey = new byte[key.length + 64]; |
| 3711 | System.arraycopy(key, 0, testKey, 0, key.length); |
| 3712 | System.arraycopy(PROBE_SUFFIX, 0, |
| 3713 | testKey, testKey.length - PROBE_SUFFIX.length, |
| 3714 | PROBE_SUFFIX.length); |
| 3715 | return testKey; |
| 3716 | } |
| 3717 | |
| 3718 | // ----------------------------------------------------------------- // |
| 3719 | // Code that manages connection and disconnection to Region Servers. // |
no outgoing calls
no test coverage detected