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

Method regression25

test/TestIntegration.java:2200–2221  ·  view source on GitHub ↗

Regression test for issue #25.

()

Source from the content-addressed store, hash-verified

2198
2199 /** Regression test for issue #25. */
2200 @Test
2201 public void regression25() throws Exception {
2202 client.setFlushInterval(FAST_FLUSH);
2203 final String table1 = args[0] + "1";
2204 final String table2 = args[0] + "2";
2205 final String family = args[1];
2206 createOrTruncateTable(client, table1, family);
2207 createOrTruncateTable(client, table2, family);
2208 for (int i = 0; i < 2; i++) {
2209 final PutRequest put;
2210 final String key = 'k' + String.valueOf(i);
2211 if (i % 2 == 0) {
2212 put = new PutRequest(table1, key, family, "q", "v");
2213 } else {
2214 put = new PutRequest(table2, key, family, "q", "v");
2215 }
2216 final DeleteRequest delete = new DeleteRequest(put.table(), put.key());
2217 client.delete(delete);
2218 client.put(put);
2219 }
2220 client.flush().joinUninterruptibly();
2221 }
2222
2223 /** Regression test for issue #40 (which was actually Netty bug #474). */
2224 @Test

Callers

nothing calls this directly

Calls 7

createOrTruncateTableMethod · 0.95
tableMethod · 0.95
keyMethod · 0.95
setFlushIntervalMethod · 0.80
deleteMethod · 0.80
putMethod · 0.80
flushMethod · 0.45

Tested by

no test coverage detected