MCPcopy Create free account
hub / github.com/OpenTSDB/opentsdb / deleteNotFound

Method deleteNotFound

test/meta/TestAnnotation.java:406–420  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

404 // this doesn't throw an error or anything, just issues the delete request
405 // and it's ignored.
406 @Test
407 public void deleteNotFound() throws Exception {
408 setupStorage(false);
409 note.setTSUID(TSUID);
410 note.setStartTime(1388450561);
411 note.delete(tsdb).joinUninterruptibly();
412 assertNotNull(storage.getColumn(tsuid_row_key,
413 new byte[] { 1, 0x0A, 0x02 }));
414 assertNotNull(storage.getColumn(tsuid_row_key,
415 new byte[] { 1, 0x0A, 0x03 }));
416 assertNotNull(storage.getColumn(tsuid_row_key,
417 new byte[] { 0x50, 0x10 }));
418 assertNotNull(storage.getColumn(tsuid_row_key,
419 new byte[] { 0x50, 0x18 }));
420 }
421
422 @Test (expected = IllegalArgumentException.class)
423 public void deleteMissingStart() throws Exception {

Callers

nothing calls this directly

Calls 5

setupStorageMethod · 0.95
getColumnMethod · 0.80
setStartTimeMethod · 0.65
setTSUIDMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected