Github user markap14 commented on a diff in the pull request:
https://github.com/apache/nifi/pull/734#discussion_r72636644
--- 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) {
--- End diff --
yeah you're right - we need to ensure that we re-set the interrupt flag.
Pushed an update to the PR.
---
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 [email protected] or file a JIRA ticket
with INFRA.
---