You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by GitBox <gi...@apache.org> on 2022/06/14 15:33:23 UTC

[GitHub] [jackrabbit-oak] FrancoisZhang commented on a diff in pull request #587: OAK-9790 - Implement parallel indexing for speeding up oak run indexing command

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


##########
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++;

Review Comment:
   fixed with AtomicLong instead here 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: dev-unsubscribe@jackrabbit.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org