@Override public void notifyCheckpointComplete(long checkpointId) throws Exception { LOG.debug("Committing Messages externally for checkpoint {}", checkpointId); for (Iterator<Tuple2<Long, Set<UId>>> iter = pendingCheckpoints.iterator(); iter.hasNext();) { Tuple2<Long, Set<UId>> checkpoint = iter.next(); long id = checkpoint.f0; if (id <= checkpointId) { LOG.trace("Committing Messages with following IDs {}", checkpoint.f1); acknowledgeIDs(checkpointId, checkpoint.f1); // remove deduplication data idsProcessedButNotAcknowledged.removeAll(checkpoint.f1); // remove checkpoint data iter.remove(); } else { break; } } } }
@Override public void notifyCheckpointComplete(long checkpointId) throws Exception { LOG.debug("Committing Messages externally for checkpoint {}", checkpointId); for (Iterator<Tuple2<Long, Set<UId>>> iter = pendingCheckpoints.iterator(); iter.hasNext();) { Tuple2<Long, Set<UId>> checkpoint = iter.next(); long id = checkpoint.f0; if (id <= checkpointId) { LOG.trace("Committing Messages with following IDs {}", checkpoint.f1); acknowledgeIDs(checkpointId, checkpoint.f1); // remove deduplication data idsProcessedButNotAcknowledged.removeAll(checkpoint.f1); // remove checkpoint data iter.remove(); } else { break; } } } }
@Override public void notifyCheckpointComplete(long checkpointId) throws Exception { LOG.debug("Committing Messages externally for checkpoint {}", checkpointId); for (Iterator<Tuple2<Long, Set<UId>>> iter = pendingCheckpoints.iterator(); iter.hasNext();) { Tuple2<Long, Set<UId>> checkpoint = iter.next(); long id = checkpoint.f0; if (id <= checkpointId) { LOG.trace("Committing Messages with following IDs {}", checkpoint.f1); acknowledgeIDs(checkpointId, checkpoint.f1); // remove deduplication data idsProcessedButNotAcknowledged.removeAll(checkpoint.f1); // remove checkpoint data iter.remove(); } else { break; } } } }
@Override public void notifyCheckpointComplete(long checkpointId) throws Exception { LOG.debug("Committing Messages externally for checkpoint {}", checkpointId); for (Iterator<Tuple2<Long, List<UId>>> iter = pendingCheckpoints.iterator(); iter.hasNext();) { Tuple2<Long, List<UId>> checkpoint = iter.next(); long id = checkpoint.f0; if (id <= checkpointId) { LOG.trace("Committing Messages with following IDs {}", checkpoint.f1); acknowledgeIDs(checkpointId, checkpoint.f1); // remove deduplication data idsProcessedButNotAcknowledged.removeAll(checkpoint.f1); // remove checkpoint data iter.remove(); } else { break; } } } }