sokui commented on code in PR #3186:
URL: https://github.com/apache/ozone/pull/3186#discussion_r876082865
##########
hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/ratis/RatisHelper.java:
##########
@@ -369,6 +384,12 @@ public static Long getMinReplicatedIndex(
.min(Long::compareTo).orElse(null);
}
+ private static boolean datanodeUseHostName() {
+ return CONF.getBoolean(
+ DFSConfigKeys.DFS_DATANODE_USE_DN_HOSTNAME,
+ DFSConfigKeys.DFS_DATANODE_USE_DN_HOSTNAME_DEFAULT);
Review Comment:
It seems that we do not have Ozone specific config for datanodes. All
datanodes configs are in DFS config. Any suggestion?
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/events/SCMEvents.java:
##########
@@ -157,6 +157,13 @@ public final class SCMEvents {
public static final TypedEvent<DatanodeDetails> NEW_NODE =
new TypedEvent<>(DatanodeDetails.class, "New_Node");
+ /**
+ * This event will be triggered whenever a datanode is registered with
+ * SCM with a different Ip or host name.
+ */
+ public static final TypedEvent<DatanodeDetails> NODE_IP_OR_HOSTNAME_UPDATE =
+ new TypedEvent<>(DatanodeDetails.class,
"Node_Ip_Or_Hostname_Update");
Review Comment:
sure.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]