Bharat Viswanadham created HDDS-4501:
----------------------------------------
Summary: Reload OM State fail should terminate OM for any
exceptions
Key: HDDS-4501
URL: https://issues.apache.org/jira/browse/HDDS-4501
Project: Hadoop Distributed Data Store
Issue Type: Bug
Reporter: Bharat Viswanadham
Assignee: Bharat Viswanadham
Right now OM is terminating only when IOException when reload terminate
happens, OM should terminate in case of any exceptions.
In one of our customer issue we have seen reloadOMState failed with
IllegalStateException due to a bug which is fixed by HDDS-3944 and caused below
issue, as installSnapshot failed we donot update commitIndex, lastWrittenIndex
in SegmentedRaftLogWorker.
{code:java}
2020-11-20 01:17:01,990 ERROR
org.apache.ratis.server.raftlog.segmented.SegmentedRaftLogWorker:
om3@group-0C953F6B62D0-SegmentedRaftLogWorker hit exception
java.lang.IllegalStateException: lastWrittenIndex == 134264, entry == term: 393
index: 134278
metadataEntry {
commitIndex: 134277
}
at org.apache.ratis.util.Preconditions.assertTrue(Preconditions.java:63)
at
org.apache.ratis.server.raftlog.segmented.SegmentedRaftLogWorker$WriteLog.execute(SegmentedRaftLogWorker.java:507)
at
org.apache.ratis.server.raftlog.segmented.SegmentedRaftLogWorker.run(SegmentedRaftLogWorker.java:302)
at java.base/java.lang.Thread.run(Thread.java:834)
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]