ChenSammi commented on code in PR #5289:
URL: https://github.com/apache/ozone/pull/5289#discussion_r1326762259
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/states/endpoint/VersionEndpointTask.java:
##########
@@ -75,6 +76,10 @@ public EndpointStateMachine.EndPointStates call() throws
Exception {
// If end point is passive, datanode does not need to check volumes.
String scmId = response.getValue(OzoneConsts.SCM_ID);
String clusterId = response.getValue(OzoneConsts.CLUSTER_ID);
+ DatanodeLayoutStorage layoutStorage
+ = new DatanodeLayoutStorage(configuration, clusterId);
Review Comment:
Can you keep the dataNodeId as null if it's not easy to get the datanode
UUID in this class, or add new constructor in DatanodeLayoutStorage which only
takes configuration as parameter.
--
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]