Github user joewitt commented on a diff in the pull request: https://github.com/apache/nifi/pull/734#discussion_r72735096 --- Diff: nifi-nar-bundles/nifi-provenance-repository-bundle/nifi-persistent-provenance-repository/src/main/java/org/apache/nifi/provenance/PersistentProvenanceRepository.java --- @@ -1668,24 +1669,32 @@ public Thread newThread(final Runnable r) { } }); + final AtomicInteger indexingFailureCount = new AtomicInteger(0); try { for (int i = 0; i < configuration.getIndexThreadPoolSize(); i++) { final Callable<Object> callable = new Callable<Object>() { @Override public Object call() throws IOException { while (!eventQueue.isEmpty() || !finishedAdding.get()) { - final Tuple<StandardProvenanceEventRecord, Integer> tuple; try { - tuple = eventQueue.poll(10, TimeUnit.MILLISECONDS); - } catch (final InterruptedException ie) { - continue; + final Tuple<StandardProvenanceEventRecord, Integer> tuple; + try { + tuple = eventQueue.poll(10, TimeUnit.MILLISECONDS); + } catch (final InterruptedException ie) { + continue; --- End diff -- @markap14 we want a "Thread.currentThread().interrupt();" here as well yes?
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---