When running mango tests, sometimes get
org.apache.lucene.store.NoSuchDirectoryException error. This is because each test in the same class used the same database name, and in the setUp function always delete and recreate it, which caused a race condition.
Using custom database names should solve it.
Testing recommendations
make mango-test
Related Issues or Pull Requests
Checklist
[ ] Code is written and works correctly
[ ] Changes are covered by tests
[ ] Any new configurable parameters are documented in rel/overlay/etc/default.ini
[ ] Documentation changes were made in the src/docs folder
[ ] Documentation changes were backported (separated PR) to affected branches
Overview
When running mango tests, sometimes get
org.apache.lucene.store.NoSuchDirectoryException
error. This is because each test in the same class used the same database name, and in the setUp function always delete and recreate it, which caused a race condition.Using custom database names should solve it.
Testing recommendations
make mango-test
Related Issues or Pull Requests
Checklist
rel/overlay/etc/default.ini
src/docs
folder