You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2020/07/30 16:01:50 UTC
[GitHub] [hadoop-ozone] maobaolong opened a new pull request #1278: HDDS-4048. Show more information while SCM version info mismatch
maobaolong opened a new pull request #1278:
URL: https://github.com/apache/hadoop-ozone/pull/1278
## What changes were proposed in this pull request?
Now, if I accident to connect unexpected SCM since i specify the wrong ozone-site.xml file, the OM cannot startup and through exception `SCM_VERSION_MISMATCH_ERROR`, but i really don't know what happened. After this PR, you can get the following concrete and complete information about the mismatch clusterId and scmId.
Something like this following:
```
2020-07-30 23:50:46,759 ERROR om.OzoneManager (OzoneManager.java:<init>(413)) - clusterId from localhost/127.0.0.1:9863 is CID-986bb182-6cf5-43c6-8ad0-979eb7353589, but is CID-986bb182-6cf5-43c6-8ad0-979eb73535891 in /tmp/metadata/om/current/VERSION
2020-07-30 23:50:46,759 ERROR om.OzoneManager (OzoneManager.java:<init>(418)) - scmId from localhost/127.0.0.1:9863 is ff25a950-8683-43bf-95c7-6ae5bcd1d27f, but is ff25a950-8683-43bf-95c7-6ae5bcd1d271f1 in /tmp/metadata/om/current/VERSION
2020-07-30 23:50:46,761 ERROR om.OzoneManagerStarter (OzoneManagerStarter.java:call(69)) - OM start failed with exception
SCM_VERSION_MISMATCH_ERROR org.apache.hadoop.ozone.om.exceptions.OMException: SCM version info mismatch.
at org.apache.hadoop.ozone.om.OzoneManager.<init>(OzoneManager.java:422)
at org.apache.hadoop.ozone.om.OzoneManager.createOm(OzoneManager.java:910)
at org.apache.hadoop.ozone.om.OzoneManagerStarter$OMStarterHelper.start(OzoneManagerStarter.java:124)
at org.apache.hadoop.ozone.om.OzoneManagerStarter.startOm(OzoneManagerStarter.java:79)
at org.apache.hadoop.ozone.om.OzoneManagerStarter.call(OzoneManagerStarter.java:67)
at org.apache.hadoop.ozone.om.OzoneManagerStarter.call(OzoneManagerStarter.java:38)
at picocli.CommandLine.execute(CommandLine.java:1173)
at picocli.CommandLine.access$800(CommandLine.java:141)
at picocli.CommandLine$RunLast.handle(CommandLine.java:1367)
at picocli.CommandLine$RunLast.handle(CommandLine.java:1335)
at picocli.CommandLine$AbstractParseResultHandler.handleParseResult(CommandLine.java:1243)
at picocli.CommandLine.parseWithHandlers(CommandLine.java:1526)
at picocli.CommandLine.parseWithHandler(CommandLine.java:1465)
at org.apache.hadoop.hdds.cli.GenericCli.execute(GenericCli.java:75)
at org.apache.hadoop.hdds.cli.GenericCli.run(GenericCli.java:66)
at org.apache.hadoop.ozone.om.OzoneManagerStarter.main(OzoneManagerStarter.java:51)
2020-07-30 23:50:46,763 INFO om.OzoneManagerStarter (StringUtils.java:lambda$startupShutdownMessage$0(124)) - SHUTDOWN_MSG:
```
## What is the link to the Apache JIRA
HDDS-4048
## How was this patch tested?
Modify the `scmUuid` and `clusterID` of `VERSION` file, and run OM.
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org
[GitHub] [hadoop-ozone] bshashikant merged pull request #1278: HDDS-4048. Show more information while SCM version info mismatch
Posted by GitBox <gi...@apache.org>.
bshashikant merged pull request #1278:
URL: https://github.com/apache/hadoop-ozone/pull/1278
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org
[GitHub] [hadoop-ozone] bshashikant commented on pull request #1278: HDDS-4048. Show more information while SCM version info mismatch
Posted by GitBox <gi...@apache.org>.
bshashikant commented on pull request #1278:
URL: https://github.com/apache/hadoop-ozone/pull/1278#issuecomment-671858567
Thanks @maobaolong for the contribution.
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org