CreatePrimaryIndexAsync throws exceptions / ignores IgnoreIfExists

Description

Summary: using the CreatePrimaryIndexAsync throws exception when a primary index already exists, no matter what IgnoreIfExists is set to.

Repro:

  1. Use CreatePrimaryIndexAsync to create an index.

  2. Use CreatePrimaryIndexAsync to create an index again (with or without IgnoreIfExists set to true or false)

  3. (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!

Environment

.NET Core / Windows

Gerrit Reviews

None

Release Notes Description

None

Attachments

2

Activity

Show:

Matthew Groves September 16, 2020 at 6:59 PM

It's a very minor part of my Connect presentation. I'm working around it with a try/catch, NBD

Jeffry Morris September 16, 2020 at 6:53 PM
Edited

Is this blocking you in any way?

Matthew Groves September 16, 2020 at 6:51 PM

I tried this against 3.0.5 release as well as the latest from github as of right now (same result)

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

Story Points

Components

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created September 16, 2020 at 6:49 PM
Updated December 22, 2021 at 1:58 AM
Resolved December 22, 2021 at 1:58 AM
Instabug