7374757677787980818283
ioe.getMessage().equals("now failing on purpose")) { diskFull = true; try { Thread.sleep(1); } catch (InterruptedException ie) { throw new ThreadInterruptedException(ie); } if (fullCount++ >= 5) break; } else { if (noErrors) {
361362363364365366367368
void joinThreads() { for (int i = 0; i < NUM_THREADS; i++) try { threads[i].join(); } catch (InterruptedException ie) { throw new ThreadInterruptedException(ie); } }
403404405406407408409410
193194195196197198199200201
} // take a nap try { Thread.sleep(cleanSleepTime); } catch (InterruptedException ie) { throw new ThreadInterruptedException(ie); } } }
302303304305306307308309310311
Date date = dateStr != null ? parseDate(dateStr) : null; try { docData = htmlParser.parse(docData, name, date, r, null); addDoc(); } catch (InterruptedException ie) { throw new ThreadInterruptedException(ie); } return docData; }
22162217221822192220222122222223222422252226
131132133134135136137138139140141
} } try { Thread.sleep(1); } catch (InterruptedException ie) { throw new ThreadInterruptedException(ie); } } while(System.currentTimeMillis() < stopTime); } };
558559560561562563564565566567568
pauseThreads++; while(!allThreadsIdle()) { try { wait(); } catch (InterruptedException ie) { throw new ThreadInterruptedException(ie); } } return aborting; }
899900901902903904905906907908909
while (!closed && ((state != null && !state.isIdle) || pauseThreads != 0 || flushPending || aborting)) { try { wait(); } catch (InterruptedException ie) { throw new ThreadInterruptedException(ie); } } if (closed) throw new AlreadyClosedException("this IndexWriter is closed");
116911701171117211731174117511761177
synchronized void waitForWaitQueue() { do { try { wait(); } catch (InterruptedException ie) { throw new ThreadInterruptedException(ie); } } while (!waitQueue.doResume()); }