HorizonNet commented on a change in pull request #2542:
URL: https://github.com/apache/hbase/pull/2542#discussion_r513798278
##
File path: hbase-common/src/main/java/org/apache/hadoop/hbase/util/DNS.java
##
@@ -35,13 +35,21 @@
// the specification of server hostname is optional. The hostname should be
resolvable from
// both master and region server
@InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.CONFIG)
- public static final String RS_HOSTNAME_KEY = "hbase.regionserver.hostname";
+ public static final String UNSAFE_RS_HOSTNAME_KEY =
"hbase.unsafe.regionserver.hostname";
@InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.CONFIG)
public static final String MASTER_HOSTNAME_KEY = "hbase.master.hostname";
private static boolean HAS_NEW_DNS_GET_DEFAULT_HOST_API;
private static Method GET_DEFAULT_HOST_METHOD;
+ /**
+ * @deprecated since 2.4.0 and in 3.0.0, to be removed in 4.0.0.
Review comment:
It's fine to only mention the first release it gets deprecated. It would
also be great if you could add the link to the deprecating ticket via a `@see`
annotation (you'll find an example
[here](https://github.com/ultratendency/hbase/blob/74d37eace9218d626586e8afee751eb52bbe5311/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java#L1363)).
##
File path:
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
##
@@ -467,13 +467,31 @@
protected String useThisHostnameInstead;
/**
- * HBASE-18226: This config and hbase.regionserver.hostname are mutually
exclusive.
- * Exception will be thrown if both are used.
+ * @deprecated since 2.4.0 and in 3.0.0, to be removed in 4.0.0.
Review comment:
Ditto.
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:
us...@infra.apache.org