You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "tkalkirill (via GitHub)" <gi...@apache.org> on 2023/07/25 11:44:01 UTC

[GitHub] [ignite-3] tkalkirill commented on a diff in pull request #2354: IGNITE-20039 Add functionality to switch the IndexManager to catalog events #2

tkalkirill commented on code in PR #2354:
URL: https://github.com/apache/ignite-3/pull/2354#discussion_r1273409184


##########
modules/catalog/src/test/java/org/apache/ignite/internal/catalog/storage/UpdateLogImplTest.java:
##########
@@ -56,69 +60,79 @@ class UpdateLogImplTest {
     void setUp() {
         vault = new VaultManager(new InMemoryVaultService());
 
-        metastore = StandaloneMetaStorageManager.create(vault, new SimpleInMemoryKeyValueStorage("test"));
+        keyValueStorage = new SimpleInMemoryKeyValueStorage("test");
+
+        metastore = StandaloneMetaStorageManager.create(vault, keyValueStorage);
 
         vault.start();
         metastore.start();
     }
 
     @AfterEach
     public void tearDown() throws Exception {
-        metastore.stop();
-        vault.stop();
+        IgniteUtils.closeAll(
+                metastore == null ? null : metastore::stop,
+                vault == null ? null : metastore::stop

Review Comment:
   fix it



-- 
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: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org