Description
Summary: using the CreatePrimaryIndexAsync throws exception when a primary index already exists, no matter what IgnoreIfExists is set to.
Repro:
- Use CreatePrimaryIndexAsync to create an index.
- Use CreatePrimaryIndexAsync to create an index again (with or without IgnoreIfExists set to true or false)
- (see attached source code for complete example)
Expected:
If IgnoreIfExists set to true, I would expect no exception if the index already exists.
Actual:
Exception (see attached)
Notes:
Looking at the code, it appears that IgnoreIfExistsValue in CreatePrimaryQueryIndexOptions is never actually used. The ignore flag is ignored!
Attachments
For Gerrit Dashboard: NCBC-2647 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
168029,3 | NCBC-2647: CreatePrimaryIndexAsync ignores IgnoreIfExists | master | couchbase-net-client | Status: MERGED | +2 | +1 |