sanpwc commented on code in PR #2172: URL: https://github.com/apache/ignite-3/pull/2172#discussion_r1234850732
########## modules/distribution-zones/src/test/java/org/apache/ignite/internal/distributionzones/DistributionZoneManagerConfigurationChangesTest.java: ########## @@ -113,7 +116,12 @@ public void setUp() throws Exception { // Mock logical topology for distribution zone. vaultMgr = new VaultManager(new InMemoryVaultService()); - assertThat(vaultMgr.put(zonesLogicalTopologyKey(), toBytes(nodes)), willCompleteSuccessfully()); + assertThat(vaultMgr.put(zonesLogicalTopologyVault(), toBytes(nodes)), willCompleteSuccessfully()); Review Comment: Here and in other tests, what about `zonesGlobalStateRevision`, should we also mock it? ########## modules/runner/src/integrationTest/java/org/apache/ignite/internal/BaseIgniteRestartTest.java: ########## @@ -0,0 +1,369 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.ignite.internal; + +import static org.apache.ignite.internal.recovery.ConfigurationCatchUpListener.CONFIGURATION_CATCH_UP_DIFFERENCE_PROPERTY; +import static org.apache.ignite.internal.testframework.matchers.CompletableFutureMatcher.willCompleteSuccessfully; +import static org.hamcrest.MatcherAssert.assertThat; + +import java.io.IOException; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.util.ArrayList; +import java.util.List; +import java.util.ListIterator; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.CompletionException; +import java.util.concurrent.atomic.AtomicLong; +import java.util.function.Consumer; +import org.apache.ignite.IgnitionManager; +import org.apache.ignite.configuration.ConfigurationModule; +import org.apache.ignite.internal.close.ManuallyCloseable; +import org.apache.ignite.internal.cluster.management.topology.LogicalTopology; +import org.apache.ignite.internal.cluster.management.topology.LogicalTopologyImpl; +import org.apache.ignite.internal.configuration.ConfigurationManager; +import org.apache.ignite.internal.configuration.ConfigurationModules; +import org.apache.ignite.internal.configuration.ConfigurationTreeGenerator; +import org.apache.ignite.internal.configuration.ServiceLoaderModulesProvider; +import org.apache.ignite.internal.configuration.storage.ConfigurationStorage; +import org.apache.ignite.internal.configuration.storage.DistributedConfigurationStorage; +import org.apache.ignite.internal.logger.IgniteLogger; +import org.apache.ignite.internal.manager.IgniteComponent; +import org.apache.ignite.internal.metastorage.MetaStorageManager; +import org.apache.ignite.internal.recovery.ConfigurationCatchUpListener; +import org.apache.ignite.internal.recovery.RecoveryCompletionFutureFactory; +import org.apache.ignite.internal.testframework.IgniteAbstractTest; +import org.apache.ignite.internal.util.IgniteUtils; +import org.apache.ignite.internal.vault.VaultManager; +import org.apache.ignite.internal.vault.persistence.PersistentVaultService; +import org.apache.ignite.lang.IgniteInternalException; +import org.apache.ignite.lang.IgniteStringFormatter; +import org.apache.ignite.lang.IgniteSystemProperties; +import org.apache.ignite.lang.NodeStoppingException; +import org.intellij.lang.annotations.Language; +import org.jetbrains.annotations.Nullable; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.TestInfo; + +/** + * Base class for node's restart tests. + */ +public abstract class BaseIgniteRestartTest extends IgniteAbstractTest { + /** Default node port. */ + protected static final int DEFAULT_NODE_PORT = 3344; + + @Language("HOCON") + protected static final String RAFT_CFG = "{\n" + + " fsync: false,\n" Review Comment: My fault, fsync: false is fine here as in all other tests actually. -- 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-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org