use of org.apache.ignite.mxbean.FailureHandlingMxBean in project ignite by apache.
the class FailureHandlingConfigurationTest method testNegativeParamValues.
/**
* @throws Exception If failed.
*/
@Test
public void testNegativeParamValues() throws Exception {
sysWorkerBlockedTimeout = -1L;
checkpointReadLockTimeout = -85L;
IgniteEx ignite = startGrid(0);
ignite.cluster().active(true);
WorkersRegistry reg = ignite.context().workersRegistry();
IgniteCacheDatabaseSharedManager dbMgr = ignite.context().cache().context().database();
FailureHandlingMxBean mBean = getMBean();
assertEquals(0L, reg.getSystemWorkerBlockedTimeout());
assertEquals(-85L, dbMgr.checkpointReadLockTimeout());
assertEquals(0L, mBean.getSystemWorkerBlockedTimeout());
assertEquals(-85L, mBean.getCheckpointReadLockTimeout());
}
Aggregations