shodaaan commented on code in PR #1539:
URL: https://github.com/apache/jackrabbit-oak/pull/1539#discussion_r1651122982
##########
oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/util/UtilsTest.java:
##########
@@ -236,6 +237,30 @@ public void fullGCDisabledForRDB() {
assertFalse("Full GC is disabled for RDB Document Store",
fullGCEnabled);
}
+ @Test
+ public void fullGCModeDefaultValue() {
+ int fullGCModeDefaultValue =
getFullGCMode(newDocumentNodeStoreBuilder());
+ final int FULL_GC_MODE_NONE = 0;
Review Comment:
Done.
##########
oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/util/UtilsTest.java:
##########
@@ -236,6 +237,30 @@ public void fullGCDisabledForRDB() {
assertFalse("Full GC is disabled for RDB Document Store",
fullGCEnabled);
}
+ @Test
+ public void fullGCModeDefaultValue() {
+ int fullGCModeDefaultValue =
getFullGCMode(newDocumentNodeStoreBuilder());
+ final int FULL_GC_MODE_NONE = 0;
+ assertEquals("Full GC mode has NONE value by default",
fullGCModeDefaultValue, FULL_GC_MODE_NONE);
+ }
+
+ @Test
+ public void fullGCModeSetViaConfiguration() {
+ DocumentNodeStoreBuilder<?> builder = newDocumentNodeStoreBuilder();
+ final int FULL_GC_MODE_GAP_ORPHANS = 2;
Review Comment:
Done.
--
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]