Skip to content

Commit

Permalink
OAK-8627: Avoid late-arriving lastRev update from crashed instance
Browse files Browse the repository at this point in the history
DocumentNodeStore must be disposed before collection is dropped
Make call to dispose fail-safe in test tear down

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1867491 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mreutegg committed Sep 24, 2019
1 parent c067845 commit c13d609
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -682,8 +682,13 @@ public MongoStoreFixture() {
}

@Override public void after() {
MongoUtils.dropCollections(c.getDBName());
nodeStore.dispose();
String dbName = c.getDBName();
try {
nodeStore.dispose();
} catch (Exception e) {
log.warn("dispose failed with exception", e);
}
MongoUtils.dropCollections(dbName);
}
}

Expand Down

0 comments on commit c13d609

Please sign in to comment.