Closed barisoyoruk closed 5 months ago
My findings:
DbKvsOracleSerializableTransactionTest
before OracleNamespaceDeleterIntegrationTest
, we get the exception message Truncate called on a table (a_ns__atlasdb_transactions_test_table) that did not exist
when running the test methods of OracleNamespaceDeleterIntegrationTest
.DbKvsOracleSerializableTransactionTest
first, the tests fail.OracleNamespaceDeleterIntegrationTest
first, the tests succeed.The weird thing is that we create the test table just before truncating. If the create succeeds, then I don't understand why truncate fails with saying that there is no such table.
Some trivia:
OracleNamespaceDeleterIntegrationTest
actually never uses TEST_TABLEI found the problematic class is OracleAlterTableIntegrationTest and function
@AfterEach
public void after() {
defaultKvs.dropTables(defaultKvs.getAllTableNames());
defaultKvs.dropTable(DbKvsOracleExtension.getKvsConfig().ddl().metadataTable());
connectionSupplier.close();
}
Since it is dropping metadata table, the following tests fail to find short name mapping for the test table. I added Order(Integer.MAX) value to this class but it is still running before other tests. I am not sure if it is Junit5 issue or I am missing something. I will deal with this PR in the future.
My leftover work from junit5 project.