FrancoisZhang commented on code in PR #587:
URL: https://github.com/apache/jackrabbit-oak/pull/587#discussion_r896981898


##########
oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/progress/IndexingProgressReporter.java:
##########
@@ -229,7 +229,9 @@ public IndexUpdateState(String indexPath, boolean reindex, 
long estimatedCount)
         }
 
         public void indexUpdate() throws CommitFailedException {
-            updateCount++;
+            synchronized (this) {
+                updateCount++;
+            }
             if (updateCount % 10000 == 0) {
                 log.info("{} => Indexed {} nodes in {} ...", indexPath, 
updateCount, watch);
                 watch.reset().start();

Review Comment:
   fixed with new commit



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to