ivandika3 commented on code in PR #6960:
URL: https://github.com/apache/ozone/pull/6960#discussion_r1760774709
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/node/SCMNodeManager.java:
##########
@@ -447,6 +449,8 @@ public RegisteredCommand register(
processNodeReport(datanodeDetails, nodeReport);
LOG.info("Updated datanode to: {}", dn);
scmNodeEventPublisher.fireEvent(SCMEvents.NODE_ADDRESS_UPDATE, dn);
+ } else if (isVersionChange(oldNode.getVersion(),
datanodeDetails.getVersion())) {
+ nodeStateManager.updateNode(datanodeDetails, layoutInfo);
Review Comment:
Seems this change is not really related to the SCM WebUI improvement since
this will trigger the change of the layout version. Not really sure if we can
simply changing the layout version DN is supposed to trigger SCM to update the
layout version for the particular DN.
Seems this will also get rejected by the previous validation.
```java
if (layoutInfo.getSoftwareLayoutVersion() !=
scmLayoutVersionManager.getSoftwareLayoutVersion()) {
return RegisteredCommand.newBuilder()
.setErrorCode(ErrorCode.errorNodeNotPermitted)
.setDatanode(datanodeDetails)
.setClusterID(this.scmStorageConfig.getClusterID())
.build();
}
```
I think it's better to address this in another ticket? Maybe need @errose28
input for this case.
--
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]