-
Notifications
You must be signed in to change notification settings - Fork 388
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
OAK-10792 - Rename DetailedGC to FullGC #1440
Conversation
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; |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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
8d858d1
to
b34ad4b
Compare
|
@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 ", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
" fullGC perform detailed garbage collection i.e. remove unmerged branch commits, old ", | |
" fullGC perform full garbage collection i.e. remove unmerged branch commits, old ", |
There was a problem hiding this comment.
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 " + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description = "Boolean value indicating whether Detailed GC should be enabled for " + | |
description = "Boolean value indicating whether Full GC should be enabled for " + |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name = "Document Node Store Detailed GC", | |
name = "Document Node Store Full GC", |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name = "Document Node Store Embedded Verification for Detailed GC", | |
name = "Document Node Store Embedded Verification for Full GC", |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
monitor.info("Looking at revisions in {} for detailed GC", rec.scopeFullGC); | |
monitor.info("Looking at revisions in {} for full GC", rec.scopeFullGC); |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// enable the detailed gc flag | |
// enable the Full gc flag |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// enable the detailed gc flag | |
// enable the Full gc flag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
We should only merge this PR after incorporating the integration branch changes into the trunk. |
b34ad4b
to
a36514f
Compare
@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) |
9e33faf
into
apache:DetailedGC/OAK-10199
@daniancu , FTR, we should prefix the commit message with the jira ticket (agreed upon practice, helps navigate commits) |
Switching to FullGC instead of DetailedGC everywhere, method names, constants, arguments etc