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

Method handleMetaZnodeTooMuchMeta

test/TestZKClient.java:1142–1152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1140 }
1141
1142 @Test
1143 public void handleMetaZnodeTooMuchMeta() throws Exception {
1144 final ZKCallback cb = zk_client.new ZKCallback();
1145 final byte[] string = "127.0.0.1,50511,1388534400000".getBytes(CHARSET);
1146 final byte[] data = new byte[string.length + 65006];
1147 data[0] = ZKCallback.MAGIC;
1148 Bytes.setInt(data, 65001, 1);
1149 System.arraycopy(string, 0, data, 65006, string.length);
1150
1151 assertNull(cb.handleMetaZnode(data));
1152 }
1153
1154 // TODO - shouldn't allow this!
1155 @Test

Callers

nothing calls this directly

Calls 2

setIntMethod · 0.95
handleMetaZnodeMethod · 0.95

Tested by

no test coverage detected