vldpyatkov commented on a change in pull request #446:
URL: https://github.com/apache/ignite-3/pull/446#discussion_r755219023
##########
File path:
modules/metastorage/src/main/java/org/apache/ignite/internal/metastorage/MetaStorageManager.java
##########
@@ -275,6 +279,8 @@ public void stop() {
LOG.error("Failed to get meta storage raft group service.");
throw new IgniteInternalException(e);
+ } catch (NodeStoppingException e) {
+ throw new AssertionError("Loza was stopped before Metastore", e);
Review comment:
Done.
##########
File path:
modules/metastorage/src/main/java/org/apache/ignite/internal/metastorage/MetaStorageManager.java
##########
@@ -190,13 +190,17 @@ public void start() {
}
storage.start();
-
- raftGroupServiceFut = raftMgr.prepareRaftGroup(
- METASTORAGE_RAFT_GROUP_NAME,
- metaStorageMembers,
- () -> new MetaStorageListener(storage)
- );
-
+
+ try {
+ raftGroupServiceFut = raftMgr.prepareRaftGroup(
+ METASTORAGE_RAFT_GROUP_NAME,
+ metaStorageMembers,
+ () -> new MetaStorageListener(storage)
+ );
+ } catch (NodeStoppingException e) {
+ throw new AssertionError("Loza was stopped before Metastore",
e);
Review comment:
Done.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]