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

Method regression2

test/TestIntegration.java:2179–2197  ·  view source on GitHub ↗

Regression test for issue #2.

()

Source from the content-addressed store, hash-verified

2177
2178 /** Regression test for issue #2. */
2179 @Test
2180 public void regression2() throws Exception {
2181 try {
2182 final PutRequest put1 = new PutRequest(table, "k1", family, "q", "val1");
2183 final PutRequest put2 = new PutRequest(table, "k2", family, "q", "val2");
2184 LOG.info("Before calling put()");
2185 client.put(put1);
2186 client.put(put2);
2187 LOG.info("After calling put()");
2188 } finally {
2189 LOG.info("Before calling flush()");
2190 // Flushing immediately a cold client used to be troublesome because we
2191 // wouldn't do a good job at making sure that we can let the client do
2192 // the entire start-up dance (find ROOT, META, issue pending queries...).
2193 client.flush().join();
2194 LOG.info("After calling flush()");
2195 assertEquals(1, client.stats().numBatchedRpcSent());
2196 }
2197 }
2198
2199 /** Regression test for issue #25. */
2200 @Test

Callers

nothing calls this directly

Calls 4

putMethod · 0.80
numBatchedRpcSentMethod · 0.80
flushMethod · 0.45
statsMethod · 0.45

Tested by

no test coverage detected