Details
-
Bug
-
Resolution: Won't Fix
-
Major - P3
-
None
-
2.9.1
-
None
Description
Based on testing, it seems that the caching behavior of the Java driver in terms of the dropped indexes is different based on how the drop of indexes is called.
Does NOT remove cached indexes:
DBObject command = Documents.build("dropIndexes", collectionName).append("index", "*").get();
|
db.command(command);
|
DOES remove cached indexes:
collection.dropIndexes()
|
This behavior can cause subsequent re-addition of indexes to fail (as a no-op essentially, there is no indication of the fact that the index has not been created) and can cause significant issues when indexes fail to be added.
Attachments
Issue Links
- is duplicated by
-
JAVA-704 Java Driver caches indexes internally, which causes indexes if indexes are managed by multiple apps
-
- Closed
-