Aleksey Plekhanov created IGNITE-22707: ------------------------------------------
Summary: Node fails when runtime exception occurs on snapshot start stage Key: IGNITE-22707 URL: https://issues.apache.org/jira/browse/IGNITE-22707 Project: Ignite Issue Type: Bug Reporter: Aleksey Plekhanov Assignee: Aleksey Plekhanov Reproducer: {code:java} /** Any node failed. */ private boolean failed; /** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception { return super.getConfiguration(igniteInstanceName).setFailureHandler((ignite, ctx) -> failed = true); } /** @throws Exception If fails. */ @Test public void testExceptionOnStartStage() throws Exception { IgniteEx ignite = startGridsWithCache(2, dfltCacheCfg, CACHE_KEYS_RANGE); IgniteFuture<Void> fut = snp(ignite).createSnapshot(SNAPSHOT_NAME, null, false, onlyPrimary); File snpDir = snp(ignite).snapshotLocalDir(SNAPSHOT_NAME); assertTrue(snpDir.mkdirs()); File snpMeta = new File(snpDir, IgniteSnapshotManager.snapshotMetaFileName(ignite.localNode().consistentId().toString())); assertTrue(snpMeta.createNewFile()); assertThrowsAnyCause(log, fut::get, IgniteException.class, "Snapshot metafile must not exist"); assertFalse(failed); } {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)