Sadanand Shenoy created HDDS-10094:
--------------------------------------
Summary: OM start failure due to failure to parse OM metrics file.
Key: HDDS-10094
URL: https://issues.apache.org/jira/browse/HDDS-10094
Project: Apache Ozone
Issue Type: Bug
Reporter: Sadanand Shenoy
It seems that OM stores some metrics like volume/bucket/key counts in metrics
file and then during a restart fetches it from there.
During a run , it was observed that OM failed to start due to parsing error of
the file
{code:java}
OM start failed with exception
com.fasterxml.jackson.databind.exc.MismatchedInputException: No content to map
due to end-of-input
at [Source: (File); line: 1, column: 0]
at
com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59)
at
com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch(DeserializationContext.java:1741)
at
com.fasterxml.jackson.databind.ObjectReader._initForReading(ObjectReader.java:359)
at
com.fasterxml.jackson.databind.ObjectReader._bindAndClose(ObjectReader.java:2041)
at com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:1599)
at org.apache.hadoop.ozone.om.OzoneManager.start(OzoneManager.java:1639)
at
org.apache.hadoop.ozone.om.OzoneManagerStarter$OMStarterHelper.start(OzoneManagerStarter.java:190)
at
org.apache.hadoop.ozone.om.OzoneManagerStarter.startOm(OzoneManagerStarter.java:86)
at
org.apache.hadoop.ozone.om.OzoneManagerStarter.call(OzoneManagerStarter.java:74)
at org.apache.hadoop.hdds.cli.GenericCli.call(GenericCli.java:38)
at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
at picocli.CommandLine.access$1300(CommandLine.java:145)
at
picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2352)
{code}
We should catch the exception and read from DB in such cases preventing OM from
shutting down.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]