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

Method putNonexistentFamily

test/TestIntegration.java:520–532  ·  view source on GitHub ↗

Attempt to write a column family that doesn't exist.

()

Source from the content-addressed store, hash-verified

518
519 /** Attempt to write a column family that doesn't exist. */
520 @Test
521 public void putNonexistentFamily() throws Exception {
522 client.setFlushInterval(FAST_FLUSH);
523 final PutRequest put = new PutRequest(table, "k", family + family,
524 "q", "val");
525 try {
526 client.put(put).join();
527 } catch (NoSuchColumnFamilyException e) {
528 assertEquals(put, e.getFailedRpc());
529 return;
530 }
531 throw new AssertionError("Should never be here");
532 }
533
534 /** Send a bunch of edits with one that references a non-existent family. */
535 @Test

Callers

nothing calls this directly

Calls 3

setFlushIntervalMethod · 0.80
putMethod · 0.80
getFailedRpcMethod · 0.65

Tested by

no test coverage detected