/** * @throws Exception In case of an error. */ @Test public void test5PartitionsNotIdealDistributionSuppressedLoggingOnClientNode() throws Exception { System.setProperty(IGNITE_PART_DISTRIBUTION_WARN_THRESHOLD, "0.0"); nodes = 4; parts = 5; backups = 3; String testsLog = runAndGetExchangeLog(true); assertFalse(testsLog.contains(LOG_MESSAGE_PREFIX)); }
/** * @throws Exception In case of an error. */ @Test public void test120PartitionsIdeadDistributionIsNotLogged() throws Exception { System.setProperty(IGNITE_PART_DISTRIBUTION_WARN_THRESHOLD, "0.0"); nodes = 3; parts = 120; backups = 2; String testsLog = runAndGetExchangeLog(false); assertFalse(testsLog.contains(LOG_MESSAGE_PREFIX)); }
/** * @throws Exception In case of an error. */ @Test public void test2PartitionsIdealDistributionIsNotLogged() throws Exception { System.setProperty(IGNITE_PART_DISTRIBUTION_WARN_THRESHOLD, "0"); nodes = 2; parts = 2; backups = 1; String testsLog = runAndGetExchangeLog(false); assertFalse(testsLog.contains(LOG_MESSAGE_PREFIX)); }
/** * @throws Exception In case of an error. */ @Test public void test5PartitionsNotIdealDistributionIsLogged() throws Exception { System.setProperty(IGNITE_PART_DISTRIBUTION_WARN_THRESHOLD, "50.0"); nodes = 4; parts = 5; backups = 3; String testsLog = runAndGetExchangeLog(false); assertTrue(testsLog.contains(LOG_MESSAGE_PREFIX)); }
/** * @throws Exception In case of an error. */ @Test public void test7PartitionsNotIdealDistributionSuppressedLogging() throws Exception { System.setProperty(IGNITE_PART_DISTRIBUTION_WARN_THRESHOLD, "50.0"); nodes = 3; parts = 7; backups = 0; String testsLog = runAndGetExchangeLog(false); assertFalse(testsLog.contains(LOG_MESSAGE_PREFIX)); }
/** * @throws Exception In case of an error. */ @Test public void test5PartitionsNotIdealDistributionSuppressedLogging() throws Exception { System.setProperty(IGNITE_PART_DISTRIBUTION_WARN_THRESHOLD, "65"); nodes = 4; parts = 5; backups = 3; String testsLog = runAndGetExchangeLog(false); assertFalse(testsLog.contains(LOG_MESSAGE_PREFIX)); }