rishabhdaim commented on code in PR #1262:
URL: https://github.com/apache/jackrabbit-oak/pull/1262#discussion_r1448446045


##########
oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/VersionGarbageCollector.java:
##########
@@ -1222,6 +1229,29 @@ public void removeGarbage(final VersionGCStats stats) {
 
             timer.reset().start();
             try {
+                if (embeddedVerification) {
+                    // embedded verification is done completely independent of 
DocumentStore
+                    // also, it's done irrespective of dry-run or not
+                    final Iterator<UpdateOp> it = updateOpList.iterator();
+                    while(it.hasNext()) {
+                        final UpdateOp update = it.next();
+                        NodeDocument oldDoc = ds.find(Collection.NODES, 
update.getId());
+                        if (oldDoc == null) {

Review Comment:
   In case oldDoc is absent `findAndUpdate` won't do anything. So we don't need 
to return from here, just ignore this.



-- 
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