| | |
| | | * optimize the counting of record in the replication changelog db. |
| | | * @throws Exception |
| | | */ |
| | | @Test(enabled=true) |
| | | @Test(enabled=true, groups = { "opendj-256" }) |
| | | void testDbCounts() throws Exception |
| | | { |
| | | // FIXME: for some reason this test is always failing in Jenkins when run as |
| | | // part of the unit tests. Here is the output (the failure is 100% |
| | | // reproducible and always has the same value of 3004): |
| | | // |
| | | // Failed Test: |
| | | // org.opends.server.replication.server.DbHandlerTest#testDbCounts |
| | | // [testng] Failure Cause: java.lang.AssertionError: AFTER PURGE |
| | | // expected:<8000> but was:<3004> |
| | | // [testng] org.testng.Assert.fail(Assert.java:84) |
| | | // [testng] org.testng.Assert.failNotEquals(Assert.java:438) |
| | | // [testng] org.testng.Assert.assertEquals(Assert.java:108) |
| | | // [testng] org.testng.Assert.assertEquals(Assert.java:323) |
| | | // [testng] |
| | | // org.opends.server.replication.server.DbHandlerTest.testDBCount(DbHandlerTest.java:594) |
| | | // [testng] |
| | | // org.opends.server.replication.server.DbHandlerTest.testDbCounts(DbHandlerTest.java:389) |
| | | |
| | | // It's worth testing with 2 different setting for counterRecord |
| | | // - a counter record is put every 10 Update msg in the db - just a unit |
| | | // setting. |