-
Notifications
You must be signed in to change notification settings - Fork 38
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
Duplicated index when updating a search index #745
Comments
Thanks for opening this issue. The ticket INTMDB-1163 was created for internal tracking. |
hello @matsekroth this ive creatd a pull request for this one, the Mappings property was defined as CreateOnly, this means that cloud formation will try to replace the resource if this property is modified, ive changed this removing the property as CreateOnly (also there is a bug on cloud formation it seems that is not updating the docs correctly for this specific property, so is still set as NotInterrupt, im informing this to Cloud Formation) |
Super @Adelmar92! |
@matsekroth this fix should have been published in the 11-10-2023 version, can you please test it? |
hi @matsekroth just double checking if you had a chance to test this yet? if so feel free to close out this issue. thank you |
Hi resolving this issue as fixed was released. Let us know if you need anything else |
CloudFormation Template (CDK)
CloudFormation Template
Steps to Reproduce
Create a searchIndex in cloudformation/cdk and add a bunch of fields and deploy this to MongoDB.
The index is created.
Add a few new fields in the previously created index and deploy again.
This will cause the issue.
Expected Behavior
The existing index should have been updated with the two new fields.
Actual Behavior
I created the index first without the last two fields "tags.tag:string" and "tags.tagCategory:string", then I tried to run a query and realized I had missed these two and then added these two fields and tried to update the index through ckd deploy and received the error that the index was duplicated.
Error:
Error: The stack named stack-name failed to deploy: UPDATE_ROLLBACK_COMPLETE: Resource handler returned message: 400 (request "ATLAS_FTS_DUPLICATE_INDEX") Duplicate Index." (RequestToken: token, HandlerErrorCode: InvalidRequest)
Additional Context
Some details are omitted in the error due to internal company information. Please reach out to me through email if you need more detailed information about the setup or errors.
There is a azure devops pipeline which executes the cdk project and deploys cdk to aws to update mongodb. This is setup properly and has been running for some time, and multiple updates has been done through this. So the error message pasted above is from the result from the azure devops pipeline.
package.json version numbers:
References
None
The text was updated successfully, but these errors were encountered: