Regression test for issue #2.
()
| 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 |
nothing calls this directly
no test coverage detected