if (oldCommit != null) { commitHydrants.putAll(oldCommit.getHydrants());
@Test public void testSerde() throws Exception { final Committed committed = fixedInstance(); final byte[] bytes = objectMapper.writeValueAsBytes(committed); final Committed committed2 = objectMapper.readValue(bytes, Committed.class); Assert.assertEquals("Round trip: overall", committed, committed2); Assert.assertEquals("Round trip: metadata", committed.getMetadata(), committed2.getMetadata()); Assert.assertEquals("Round trip: identifiers", committed.getHydrants().keySet(), committed2.getHydrants().keySet()); }
log.info("Loading sinks from[%s]: %s", baseDir, committed.getHydrants().keySet()); Iterables.transform(sinks.keySet(), SegmentIdWithShardSpec::toString) ); final Set<String> missingSinks = Sets.difference(committed.getHydrants().keySet(), loadedSinks); if (!missingSinks.isEmpty()) { throw new ISE("Missing committed sinks [%s]", Joiner.on(", ").join(missingSinks));
if (oldCommit != null) { commitHydrants.putAll(oldCommit.getHydrants());
log.info("Loading sinks from[%s]: %s", baseDir, committed.getHydrants().keySet()); final Set<String> missingSinks = Sets.difference(committed.getHydrants().keySet(), loadedSinks); if (!missingSinks.isEmpty()) { throw new ISE("Missing committed sinks [%s]", Joiner.on(", ").join(missingSinks));