@Override public void flush() throws StreamingIOFailure { try { for (RecordUpdater updater : updaters) { if (updater != null) { updater.flush(); } } } catch (IOException e) { throw new StreamingIOFailure("Unable to flush recordUpdater", e); } }
@Override public void flush() throws StreamingIOFailure { try { if (LOG.isDebugEnabled()) { logStats("Stats before flush:"); } for (Map.Entry<String, List<RecordUpdater>> entry : updaters.entrySet()) { if (LOG.isDebugEnabled()) { LOG.debug("Flushing record updater for partitions: {}", entry.getKey()); } for (RecordUpdater updater : entry.getValue()) { if (updater != null) { updater.flush(); } } } ingestSizeBytes = 0; if (LOG.isDebugEnabled()) { logStats("Stats after flush:"); } } catch (IOException e) { throw new StreamingIOFailure("Unable to flush recordUpdater", e); } }
@Test public void testFlushDoesNothing() throws IOException { mutator.flush(); verify(mockRecordUpdater, never()).flush(); }
@Override public void flush() throws StreamingIOFailure { try { updater.flush(); } catch (IOException e) { throw new StreamingIOFailure("Unable to flush recordUpdater", e); } }
@Override public void flush() throws StreamingIOFailure { try { logStats("Stats before flush:"); for (Map.Entry<String, List<RecordUpdater>> entry : updaters.entrySet()) { LOG.info("Flushing record updater for partitions: {}", entry.getKey()); for (RecordUpdater updater : entry.getValue()) { if (updater != null) { updater.flush(); } } } ingestSizeBytes = 0; logStats("Stats after flush:"); } catch (IOException e) { throw new StreamingIOFailure("Unable to flush recordUpdater", e); } }