rishabhdaim commented on code in PR #2032:
URL: https://github.com/apache/jackrabbit-oak/pull/2032#discussion_r1935160660
##########
oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/FullGCHelper.java:
##########
@@ -60,6 +63,16 @@ public static void disableFullGCDryRun(final
VersionGarbageCollector vgc) throws
}
}
+ public static VersionGarbageCollector.VersionGCStats gc(final
VersionGarbageCollector gc, final long maxRevisionAge, final TimeUnit unit)
throws IOException {
+ gc.setFullGcMaxAge(maxRevisionAge, unit); // set full gc max age
+ final VersionGarbageCollector.VersionGCStats stats =
gc.gc(maxRevisionAge, unit);
+ if (stats.skippedFullGCDocsCount != 0) {
+ (new Exception("here: " +
stats.skippedFullGCDocsCount)).printStackTrace(System.out);
Review Comment:
this has been added to help in printing the error to console in case of
failures while running test cases.
--
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]