[CSHARP-1788] Manage Index on GridFS Created: 09/Oct/16  Updated: 13/Oct/17  Resolved: 13/Oct/17

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

Type: Improvement Priority: Major - P3
Reporter: Hervé TINANT Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates CSHARP-1866 GridFS should check whether indexes a... Closed
Backwards Compatibility: Fully Compatible

 Description   

It's possible to manage index on GridFS.

Today I try to create Indexes via IMongoCollection with CollectionName = "MyBucketNAme.files", but if bucket was not created before, creation of crash because he try to create collection with same name.

Thx



 Comments   
Comment by Robert Stam [ 22/Apr/17 ]

That sounds like it might the same issue reported here:

https://jira.mongodb.org/browse/CSHARP-1866

Which version of the driver are you using? CSHARP-1866 was addressed in version 2.4.1.

Comment by Hervé TINANT [ 18/Apr/17 ]

I have "IndexManager" console application which check index and create it if not present.
If I run this app before create bucket on my db, this app create Mongo collection "MyBucketName.files" (because I need to add an index on metadata of bucket).
And when other application try to create bucket "MyBucketName" for adding file, it take error because "MyBucketName.files" already exists.

Comment by Robert Stam [ 22/Dec/16 ]

I don't understand exactly the problem you are describing.

Can you rephrase?

Or even better, provide a short code snippet to reproduce the issue?

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