@Override public void onFailure(Throwable cause){
  LOG.error("Encountered failures on writing record as (lid = {}, eid = {}) :",new Object[]{currentLogSegmentSeqNo,currentEntryId,cause});
  errorsFound.set(true);
  syncLatch.countDown();
}

@ Override public void onFailure ( Throwable cause ) { LOG . error ( "Encountered failures on writing record as (lid = {}, eid = {}) :" , new Object [ ] { currentLogSegmentSeqNo , currentEntryId , cause } ) ; errorsFound . set ( true ) ; syncLatch . countDown ( ) ; }
invoked if the computation completes unsuccessfully
