Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azurerm_cosmosdb_mongo_collection: remove _id index check #24817

Closed
wants to merge 4 commits into from

Conversation

wuxu92
Copy link
Contributor

@wuxu92 wuxu92 commented Feb 8, 2024

This is caused by a living API Breaking change, so this PR is waiting for service team's fix

the _id index was not required anymore, we cannot set it even or the API will raise error: Message="The field 'unique' is not valid for _id index specification.\r\nActivityId.

document: https://learn.microsoft.com/en-us/azure/cosmos-db/mongodb/indexing#indexing-for-mongodb-server-version-36-and-higher

image

@github-actions github-actions bot added size/M and removed size/S labels Feb 8, 2024
@wuxu92 wuxu92 changed the title azurerm_cosmosdb_mongo_collection: remove cosmosdb collection _id index check azurerm_cosmosdb_mongo_collection: remove _id index check Feb 8, 2024
@stephybun
Copy link
Member

@wuxu92 is there a timeline for when the service team will release their fix for this?

@wuxu92
Copy link
Contributor Author

wuxu92 commented Mar 8, 2024

@stephybun It appears that the service team has reversed the breaking change that caused this issue. The AccTest has been successfully passed for some time now, so I will close this PR.

image

@wuxu92 wuxu92 closed this Mar 8, 2024
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mongo collection not supporting unique field on _id index
2 participants