You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "aryangupta1998 (via GitHub)" <gi...@apache.org> on 2023/06/20 20:04:21 UTC
[GitHub] [ozone] aryangupta1998 opened a new pull request, #4945: HDDS-8892. OM Node Id from VERSION file should removed after the OM node has been decommissioned
aryangupta1998 opened a new pull request, #4945:
URL: https://github.com/apache/ozone/pull/4945
## What changes were proposed in this pull request?
OM node id should be removed from the VERSION file after the OM node has been decommissioned to avoid OM node Id mismatch in case an ex-OM node is bootstrapped again. This can happen when an ex-OM node is bootstrapped, then it will be bootstrapped with a new OM node id and the existing VERSION file will contain the old OM node id which will cause an OM node id mismatch during the bootstrap, therefore we need to remove the OM node id from the VERSION file upon successful decommissioning. Also, when an OM is bootstrapped if the VERSION file doesn’t exist then it will be created and if it exists then a new entry of OM node id will be appended.
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-8892
## How was this patch tested?
Tested Manually.
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] aryangupta1998 commented on pull request #4945: HDDS-8892. OM Node Id from VERSION file should removed after the OM node has been decommissioned
Posted by "aryangupta1998 (via GitHub)" <gi...@apache.org>.
aryangupta1998 commented on PR #4945:
URL: https://github.com/apache/ozone/pull/4945#issuecomment-1600759656
As of now after decommissioning an OM node we have to manually clean up the OM-related data before bootstrapping it which will eventually delete the VERSION file, hence we'll never run into the issue described in this PR. Hence, closing the PR.
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] aryangupta1998 closed pull request #4945: HDDS-8892. OM Node Id from VERSION file should removed after the OM node has been decommissioned
Posted by "aryangupta1998 (via GitHub)" <gi...@apache.org>.
aryangupta1998 closed pull request #4945: HDDS-8892. OM Node Id from VERSION file should removed after the OM node has been decommissioned
URL: https://github.com/apache/ozone/pull/4945
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] sadanand48 commented on a diff in pull request #4945: HDDS-8892. OM Node Id from VERSION file should removed after the OM node has been decommissioned
Posted by "sadanand48 (via GitHub)" <gi...@apache.org>.
sadanand48 commented on code in PR #4945:
URL: https://github.com/apache/ozone/pull/4945#discussion_r1236888810
##########
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/admin/om/DecommissionOMSubcommand.java:
##########
@@ -115,6 +116,8 @@ public Void call() throws IOException {
.setHostAddress(hostInetAddress.getHostAddress())
.build();
omAdminProtocolClient.decommission(decommNodeDetails);
+ OMStorage omStorage = new OMStorage(ozoneConf);
+ omStorage.unsetOmNodeId();
Review Comment:
This might actually not remove/edit the entry from the version file of the decommissioned node rather will edit it on the node on which this command will be run, If the command is run on a non-OM node, it might even generate an IOException as it wont find the version file.
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org