[JAVA-444] make ensureIndex first do a read on index collection to see if index exists Created: 06/Oct/11  Updated: 19/Oct/16  Resolved: 04/Nov/11

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 2.7

Type: Improvement Priority: Major - P3
Reporter: Eliot Horowitz (Inactive) Assignee: Scott Hernandez (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends

 Description   

this prevents a write lock



 Comments   
Comment by auto [ 26/Oct/11 ]

Author:

{u'login': u'bwmcadams', u'name': u'Brendan W. McAdams', u'email': u'brendan@10gen.com'}

Message: JAVA-444: make ensureIndex first do a read on index collection to see if index exists

Comment by Brendan W. McAdams [ 26/Oct/11 ]

The way this code inserts, it is being blocked by the Key check code if you create an index on an embedded field.

Comment by auto [ 24/Oct/11 ]

Author:

{u'login': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: JAVA-444: query before insert on index creation.
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/defc4a7897d1b83eb7fab1e38a05cdbcbade880b

Generated at Thu Feb 08 08:52:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.