Avoid late-arriving lastRev update from crashed instance
DocumentNodeStore must be disposed before collection is dropped
Make call to dispose fail-safe in test tear down
@@ -682,8 +682,13 @@ public class DataStoreCommandTest {
}
@Override public void after() {
- MongoUtils.dropCollections(c.getDBName());
+ String dbName = c.getDBName();
+ try {
nodeStore.dispose();
+ } catch (Exception e) {
+ log.warn("dispose failed with exception", e);
+ }
+ MongoUtils.dropCollections(dbName);
}
}
