-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
HBASE-24137:The max merge count of metafixer may be remind in hbase-site.xml #1478
Changes from 2 commits
c5fa7d7
8501b9d
3a06f41
50bd97c
b9c9f5f
d72d8e1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,8 +51,6 @@ | |
@InterfaceAudience.Private | ||
class MetaFixer { | ||
private static final Logger LOG = LoggerFactory.getLogger(MetaFixer.class); | ||
private static final String MAX_MERGE_COUNT_KEY = "hbase.master.metafixer.max.merge.count"; | ||
private static final int MAX_MERGE_COUNT_DEFAULT = 10; | ||
|
||
private final MasterServices masterServices; | ||
/** | ||
|
@@ -63,7 +61,7 @@ class MetaFixer { | |
MetaFixer(MasterServices masterServices) { | ||
this.masterServices = masterServices; | ||
this.maxMergeCount = this.masterServices.getConfiguration(). | ||
getInt(MAX_MERGE_COUNT_KEY, MAX_MERGE_COUNT_DEFAULT); | ||
getInt("hbase.master.metafixer.max.merge.count", 10); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It was configurable before this change? You could add hbase.master.metafixer.max.merge.count 11 configure the max merge count... But maybe you think it deserves mention in the hbase-default.xml so operators can find it easier? If so, I'd suggest a fuller description. Thanks. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think should be add hbase.master.metafixer.max.merge.count in hbase-default.xml that so operators can change it easier. I have added fuller description in hbase-default.xml. Thanks There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes if the purpose is to mention this config in Thanks. |
||
} | ||
|
||
void fix() throws IOException { | ||
|
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.
The default changed.
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.
@saintstack I have changed the default value
Thanks