ZhaoBQ commented on a change in pull request #3139:
URL: https://github.com/apache/hbase/pull/3139#discussion_r627063578
##########
File path:
hbase-server/src/main/java/org/apache/hadoop/hbase/master/normalizer/SimpleRegionNormalizer.java
##########
@@ -101,11 +106,21 @@ public void onConfigurationChange(Configuration conf) {
setConf(conf);
}
- private static int parseMinRegionCount(final Configuration conf) {
- final int parsedValue = conf.getInt(MIN_REGION_COUNT_KEY,
DEFAULT_MIN_REGION_COUNT);
+ private static int parseMergeMinRegionCount(final Configuration conf) {
+ String parsedStringValue = conf.get(MERGE_MIN_REGION_COUNT_KEY);
Review comment:
Your example is special because you call the c.set() method. But we all
define the configuration in hbase-site.xml. If your hbase-site.xml define:
<property><name>foo</name><value>99</value></property> and do not call
c.set("foo", "99"), the value of c.get("bar") and c.get("foo") is "42". If you
call Configuration.addDeprecation("foo", "bar") first, then call
Configuration.addDeprecation("foo", "bar"), the value of c.get("bar") and
c.get("foo") is 99.
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]