You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ta...@apache.org on 2021/07/01 20:45:57 UTC
[tika] 03/03: fix counting in tika-eval FileResourceConsumer
This is an automated email from the ASF dual-hosted git repository.
tallison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tika.git
commit 17ed7e89fe9031be2f180341159bddc6f256baac
Author: tallison <ta...@apache.org>
AuthorDate: Thu Jul 1 16:45:37 2021 -0400
fix counting in tika-eval FileResourceConsumer
---
.../src/main/java/org/apache/tika/batch/FileResourceConsumer.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tika-batch/src/main/java/org/apache/tika/batch/FileResourceConsumer.java b/tika-batch/src/main/java/org/apache/tika/batch/FileResourceConsumer.java
index 044e178..d38533b 100644
--- a/tika-batch/src/main/java/org/apache/tika/batch/FileResourceConsumer.java
+++ b/tika-batch/src/main/java/org/apache/tika/batch/FileResourceConsumer.java
@@ -66,8 +66,8 @@ public abstract class FileResourceConsumer implements Callable<IFileProcessorFut
//being processed. It is null if no file is currently being processed.
//no need for volatile because of lock for checkForStales
private FileStarted currentFile = null;
- private static final AtomicInteger numResourcesConsumed = new AtomicInteger(0);
- private static final AtomicInteger numHandledExceptions = new AtomicInteger(0);
+ private final AtomicInteger numResourcesConsumed = new AtomicInteger(0);
+ private final AtomicInteger numHandledExceptions = new AtomicInteger(0);
//after this has been set to ACTIVELY_CONSUMING,
//this should only be set by setEndedState.
private volatile STATE currentState = STATE.NOT_YET_STARTED;