Skip to content

Conversation

@maobaolong
Copy link
Member

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.

@bshashikant bshashikant merged commit 2da809e into apache:master Aug 11, 2020
@bshashikant
Copy link
Contributor

Thanks @maobaolong for the contribution.

errose28 added a commit to errose28/ozone that referenced this pull request Aug 12, 2020
* master: (28 commits)
  HDDS-4037. Incorrect container numberOfKeys and usedBytes in SCM after key deletion (apache#1295)
  HDDS-3232. Include the byteman scripts in the distribution tar file (apache#1309)
  HDDS-4095. Byteman script to debug HCFS performance (apache#1311)
  HDDS-4057. Failed acceptance test missing from bundle (apache#1283)
  HDDS-4040. [OFS] BasicRootedOzoneFileSystem to support batchDelete (apache#1286)
  HDDS-4061. Pending delete blocks are not always included in #BLOCKCOUNT metadata (apache#1288)
  HDDS-4067. Implement toString for OMTransactionInfo (apache#1300)
  HDDS-3878. Make OMHA serviceID optional if one (but only one) is defined in the config (apache#1149)
  HDDS-3833. Use Pipeline choose policy to choose pipeline from exist pipeline list (apache#1096)
  HDDS-3979. Make bufferSize configurable for stream copy (apache#1212)
  HDDS-4048. Show more information while SCM version info mismatch (apache#1278)
  HDDS-4078. Use HDDS InterfaceAudience/Stability annotations (apache#1302)
  HDDS-4034. Add Unit Test for HadoopNestedDirGenerator. (apache#1266)
  HDDS-4076. Translate CSI.md into Chinese (apache#1299)
  HDDS-4046. Extensible subcommands for CLI applications (apache#1276)
  HDDS-4051. Remove whitelist/blacklist terminology from Ozone (apache#1306)
  HDDS-4055. Cleanup GitHub workflow (apache#1282)
  HDDS-4042. Update documentation for the GA release (apache#1269)
  HDDS-4066. Add core-site.xml to intellij configuration (apache#1292)
  HDDS-4073. Remove leftover robot.robot (apache#1297)
  ...
rakeshadr pushed a commit to rakeshadr/hadoop-ozone that referenced this pull request Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants