void abort(){
  aborted=true;
  try {
    if (infoStream.isEnabled("DWPT")) {
      infoStream.message("DWPT","now abort");
    }
    try {
      consumer.abort();
    }
 catch (    Throwable t) {
    }
    pendingUpdates.clear();
  }
  finally {
    if (infoStream.isEnabled("DWPT")) {
      infoStream.message("DWPT","done abort");
    }
  }
}

void abort ( ) { aborted = true ; try { if ( infoStream . isEnabled ( "DWPT" ) ) { infoStream . message ( "DWPT" , "now abort" ) ; } try { consumer . abort ( ) ; } catch ( Throwable t ) { } pendingUpdates . clear ( ) ; } finally { if ( infoStream . isEnabled ( "DWPT" ) ) { infoStream . message ( "DWPT" , "done abort" ) ; } } }
called if we hit an exception at a bad time ( when updating the index files ) and must discard all currently buffered docs . this resets our state , discarding any docs added since last flush .
