[CSHARP-1282] Can't get indexes results with the GetIndexes method Created: 15/May/15  Updated: 05/Apr/16  Resolved: 22/May/15

Status: Closed
Project: C# Driver
Component/s: Operations
Affects Version/s: 1.10
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: DaixiShi Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: Bug
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CentOS 6.4


Attachments: PNG File compatibility.png     PNG File index1.png     PNG File index2.png    

 Description   

I deploy a sharded cluster on CentOS 6.4 with MongoDB 3.0.2 and develop my application with .net 4.5.

When I use the GetIndexes method in C# Driver, it returns empty as index1.png shows.

When I use this method to a mongos of MongoDB 2.4.10 version, it can correctly return the result as index2.png shows.

I check the language compatibility and don't find any problems.



 Comments   
Comment by Craig Wilson [ 22/May/15 ]

Hi tottishi05

I'm closing this ticket as cannot reproduce. If you can provide a sample, please re-open and I'll be happy to investigate further.

Thanks,
Craig

Comment by Craig Wilson [ 16/May/15 ]

Yes, I was able to get indexes against MongoDB 3.0.2 on my machine using driver 1.10. If you could run the code in my last message using the mongo shell, that'd would help us see what you have in your system that might be causing problems.

Craig

Comment by DaixiShi [ 16/May/15 ]

Hi Craig Wilson
~[Craig Wilson]

Sorry, my English is a little poor and I cannot exactly understand what your meant.

You said that "I reproduce this on my local machine and was unable to".
Do you mean that you can correctly get indexes by C# driver 1.10 on Mongo 3.0.2??

Comment by Craig Wilson [ 15/May/15 ]

Hi DaixiShi,

I've attempted to reproduce this on my local machine and was unable to. Could you provide the results of getting the indexes from the shell against your 3.0.2 mongos?

> db.runCommand({listIndexes: "your collection name"})

Alternatively, you could provide a reproducible console application and instructions.

Thanks,
Craig

Generated at Wed Feb 07 21:39:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.