@Override protected final void doClose() throws InterruptRunException, IOException { recycleQueue.clear(); // the item input may be instantiated by the load generator builder which has no reference to it // so the load // generator builder should close it if (itemInput != null) { try { inputLock.tryLock(Fiber.WARN_DURATION_LIMIT_NANOS, TimeUnit.NANOSECONDS); itemInput.close(); } catch (final InterruptedException e) { throw new InterruptRunException(e); } catch (final Exception e) { LogUtil.exception(Level.WARN, e, "{}: failed to close the item input", toString()); } } // ops builder is instantiated by the load generator builder which forgets it so the load // generator should // close it opsBuilder.close(); }
} finally { try { itemInput.close(); } catch (final IOException ignored) {