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

Method probeKey

src/HBaseClient.java:3709–3716  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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. //

Callers 2

handleNSREMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected