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

Method deleteWithLock

test/TestDeleteRequest.java:193–203  ·  view source on GitHub ↗

Test delete that deletes with taking a row lock @throws Exception

()

Source from the content-addressed store, hash-verified

191 * @throws Exception
192 */
193 @Test
194 public void deleteWithLock() throws Exception {
195 final DeleteRequest delete = new DeleteRequest(TABLE, KEY, FAMILY,
196 QUALIFIER, LOCK);
197 stubbing(delete);
198 client.delete(delete);
199 Mockito.verify(client).sendRpcToRegion(delete);
200 Mockito.verify(regionclient).sendRpc(delete);
201 assertTrue(sendDelete);
202 assertEquals(1, num_deletes.get());
203 }
204
205 /**
206 * Test delete that deletes with a specific row lock and time

Callers

nothing calls this directly

Calls 5

stubbingMethod · 0.95
deleteMethod · 0.80
sendRpcToRegionMethod · 0.80
sendRpcMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected