Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAK-10792 - Rename DetailedGC to FullGC #1440

Merged

Conversation

daniancu
Copy link

@daniancu daniancu commented May 8, 2024

Switching to FullGC instead of DetailedGC everywhere, method names, constants, arguments etc

@reschke
Copy link
Contributor

reschke commented May 8, 2024

Can you please open a JIRA ticket to track this change?

@@ -46,19 +31,32 @@
import org.apache.jackrabbit.oak.plugins.document.NodeDocument;
import org.apache.jackrabbit.oak.plugins.document.RevisionContextWrapper;
import org.apache.jackrabbit.oak.plugins.document.SweepHelper;
import org.apache.jackrabbit.oak.plugins.document.VersionGCOptions;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not move imports around (unless the change is exactly for thar purpose)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry for that, I've set them back

@daniancu daniancu changed the title Rename DetailedGC to FullGC OAK-10792 - Rename DetailedGC to FullGC May 9, 2024
@daniancu daniancu requested a review from reschke May 9, 2024 09:56
@daniancu
Copy link
Author

daniancu commented May 9, 2024

Can you please open a JIRA ticket to track this change?

https://issues.apache.org/jira/browse/OAK-10792

@daniancu
Copy link
Author

@reschke @rishabhdaim can you take an other look?

@@ -92,9 +90,9 @@ public class RevisionsCommand implements Command {
" collect perform garbage collection",
" reset clear all persisted metadata",
" sweep clean up uncommitted changes",
" detailedGC perform detailed garbage collection i.e. remove unmerged branch commits, old ",
" fullGC perform detailed garbage collection i.e. remove unmerged branch commits, old ",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
" fullGC perform detailed garbage collection i.e. remove unmerged branch commits, old ",
" fullGC perform full garbage collection i.e. remove unmerged branch commits, old ",

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@@ -311,10 +311,10 @@
@AttributeDefinition(
name = "Document Node Store Detailed GC",
description = "Boolean value indicating whether Detailed GC should be enabled for " +
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description = "Boolean value indicating whether Detailed GC should be enabled for " +
description = "Boolean value indicating whether Full GC should be enabled for " +

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@@ -311,10 +311,10 @@
@AttributeDefinition(
name = "Document Node Store Detailed GC",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
name = "Document Node Store Detailed GC",
name = "Document Node Store Full GC",

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

"property 'oak.documentstore.detailedGCEnabled'")
boolean detailedGCEnabled() default DEFAULT_DETAILED_GC_ENABLED;
"property 'oak.documentstore.fullGCEnabled'")
boolean fullGCEnabled() default DEFAULT_FULL_GC_ENABLED;

@AttributeDefinition(
name = "Document Node Store Embedded Verification for Detailed GC",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
name = "Document Node Store Embedded Verification for Detailed GC",
name = "Document Node Store Embedded Verification for Full GC",

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

monitor.skipped("Checkpoint prevented detailed revision garbage collection");
} else {
final RevisionVector headRevision = nodeStore.getHeadRevision();
monitor.info("Looking at revisions in {} for detailed GC", rec.scopeDetailedGC);
monitor.info("Looking at revisions in {} for detailed GC", rec.scopeFullGC);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
monitor.info("Looking at revisions in {} for detailed GC", rec.scopeFullGC);
monitor.info("Looking at revisions in {} for full GC", rec.scopeFullGC);

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

gc.collectGarbage(doc, phases);
phases.stop(GCPhase.DETAILED_GC_COLLECT_GARBAGE);
phases.stop(GCPhase.FULL_GC_COLLECT_GARBAGE);
}

final Long modified = lastDoc.getModified();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update below lines: 860 & 862

collectDetailedGarbage --> collectFullGarbage

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameter;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you please revert the import statement changes?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@@ -1045,7 +1044,7 @@ public void testGCDeletedNonBundledProps() throws Exception {
store1.merge(b1, EmptyHook.INSTANCE, CommitInfo.EMPTY);

// enable the detailed gc flag
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// enable the detailed gc flag
// enable the Full gc flag

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for all the comment with // enable the detailed gc flag

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rishabhdaim I think I fixed them all, can you review pls?

@@ -2243,8 +2242,8 @@ public void testDeletedPropsAndUnmergedBCWithCollisionWithDryRunMode() throws Ex
store1.runBackgroundOperations();

// enable the detailed gc flag
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// enable the detailed gc flag
// enable the Full gc flag

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@rishabhdaim
Copy link
Contributor

We should only merge this PR after incorporating the integration branch changes into the trunk.
cc @stefan-egli @reschke

@stefan-egli
Copy link
Contributor

We should only merge this PR after incorporating the integration branch changes into the trunk.

@rishabhdaim does it otherwise cause merge conflicts? I understand the concern - on the other hand this should only change new code, so wouldn't expect additional merge conflicts? (but if it would, then yes)

@rishabhdaim rishabhdaim merged commit 9e33faf into apache:DetailedGC/OAK-10199 May 14, 2024
1 of 2 checks passed
@stefan-egli
Copy link
Contributor

@daniancu , FTR, we should prefix the commit message with the jira ticket (agreed upon practice, helps navigate commits)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants