MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / syncToStorageGlobalSalted

Method syncToStorageGlobalSalted

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

Source from the content-addressed store, hash-verified

297 }
298
299 @Test
300 public void syncToStorageGlobalSalted() throws Exception {
301 setupStorage(true);
302 note.setStartTime(1328140800L);
303 note.setDescription("Synced!");
304 note.syncToStorage(tsdb, false).joinUninterruptibly();
305 final byte[] col = storage.getColumn(global_row_key,
306 new byte[] { 1, 0, 0 });
307 note = JSON.parseToObject(col, Annotation.class);
308 assertEquals("", note.getTSUID());
309 assertEquals("Synced!", note.getDescription());
310 assertEquals("Notes", note.getNotes());
311 }
312
313 @Test
314 public void syncToStorageGlobalMilliseconds() throws Exception {

Callers

nothing calls this directly

Calls 9

setupStorageMethod · 0.95
parseToObjectMethod · 0.95
getColumnMethod · 0.80
setStartTimeMethod · 0.65
setDescriptionMethod · 0.45
syncToStorageMethod · 0.45
getTSUIDMethod · 0.45
getDescriptionMethod · 0.45
getNotesMethod · 0.45

Tested by

no test coverage detected