/** {@inheritDoc} */ @Override protected boolean handle(Ignite ignite, FailureContext failureCtx) { failure = true; error = failureCtx.error(); return true; } }
@Override protected boolean handle(Ignite ignite, FailureContext failureCtx) { err.compareAndSet(null, failureCtx.error()); stop.set(true); return false; } });
/** * @throws Exception If failed. */ private void failFormatFileOnClusterActivate() throws Exception { failMtdNameRef.set(null); startGrid(0); startGrid(1); if (!fsync) { setFileIOFactory(grid(0).context().cache().context().wal()); setFileIOFactory(grid(1).context().cache().context().wal()); } failMtdNameRef.set(formatFile); grid(0).cluster().active(true); checkCause(failureHandler(0).awaitFailure(2000).error()); checkCause(failureHandler(1).awaitFailure(2000).error()); }
assertTrue(X.hasCause(dummyFailureHandler(ignite1).failureContext().error(), IgniteOutOfMemoryException.class));