-
Type:
Bug
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: 3.0.2
-
Component/s: Storage
-
None
-
ALL
-
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
2015-05-11T17:02:29.804+0200 I INDEX [conn24] build index on: mydb.mycol properties: { v: 1, key: { i: 1 }, name: "test_index", ns: "mydb.mycol" } 2015-05-11T17:02:29.804+0200 I INDEX [conn24] building index using bulk method 2015-05-11T17:02:29.805+0200 I INDEX [conn24] build index done. scanned 101 total records. 0 secs 2015-05-11T17:02:29.806+0200 I QUERY [conn24] assertion 17007 Unable to execute query: error processing query: ns=mydb.mycol limit=0 skip=0 Tree: $and Sort: {} Proj: {} planner returned error: bad hint ns:mydb.mycol query:{ $hint: { test_index: 1 }, $query: {} }
I see this when using the mongoshell as well as with PyMongo and TxMongo.
The query works when using:
{ $hint: { i: 1 }, $query: {} }