Skip to content

feat(search deployments): add no_wait_for_state_transition parameter to skip reindexing wait #3109

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

Closed
wants to merge 11 commits into from

Conversation

ridmagroupby
Copy link
Contributor

@ridmagroupby ridmagroupby commented Feb 25, 2025

Description

This PR introduces a new optional parameter, no_wait_for_state_transition, to the mongodbatlas_search_deployment resource. This new feature allows Terraform to update search nodes without waiting for all reindexing operations to complete.

When creating search nodes, the default behavior is acceptable; however, when modifying search nodes that already have many indexes, waiting for the complete reindexing process can take a long time and incur significant pipeline costs. With this change, if no_wait_for_state_transition is set to true, Terraform will trigger the update and return immediately, allowing reindexing to continue in the background. The default value remains false to ensure backward compatibility.

Link to any related issue(s): HELP-71754

Type of change

  • Bug fix (non-breaking change which fixes an issue). Please, add the "bug" label to the PR.
  • New feature (non-breaking change which adds functionality). Please, add the "enhancement" label to the PR. A migration guide must be created or updated if the new feature will go in a major version.
  • Breaking change (fix or feature that would cause existing functionality to not work as expected). Please, add the "breaking change" label to the PR. A migration guide must be created or updated.
  • This change requires a documentation update.
  • Documentation fix/enhancement.

Required Checklist

  • I have signed the MongoDB CLA.
  • I have read the contributing guides.
  • I have checked that this change does not generate any credentials and that they are NOT accidentally logged anywhere.
  • I have added tests that prove my fix is effective or that my feature works per HashiCorp requirements.
  • I have added any necessary documentation (if appropriate).
  • I have run make fmt and formatted my code.
  • If changes include deprecations or removals I have added appropriate changelog entries.
  • If changes include removal or addition of 3rd party GitHub actions, I updated our internal document. (Reach out to the APIx Integration slack channel to get access to the internal document.)

Further comments

No further comments.

@ridmagroupby ridmagroupby requested a review from a team as a code owner February 25, 2025 17:42
Copy link
Contributor

github-actions bot commented Mar 3, 2025

This PR has gone 7 days without any activity and meets the project’s definition of "stale". This will be auto-closed if there is no new activity over the next 7 days. If the issue is still relevant and active, you can simply comment with a "bump" to keep it open, or add the label "not_stale". Thanks for keeping our repository healthy!

@github-actions github-actions bot added the stale label Mar 3, 2025
@themantissa
Copy link
Collaborator

Thank you @ridmagroupby for the PR. We are discussing the it with the team and will get back to you soon.

@github-actions github-actions bot removed the stale label Mar 4, 2025
Copy link
Contributor

This PR has gone 7 days without any activity and meets the project’s definition of "stale". This will be auto-closed if there is no new activity over the next 7 days. If the issue is still relevant and active, you can simply comment with a "bump" to keep it open, or add the label "not_stale". Thanks for keeping our repository healthy!

@github-actions github-actions bot added the stale label Mar 10, 2025
@ridmagroupby
Copy link
Contributor Author

bump

@github-actions github-actions bot removed the stale label Mar 11, 2025
Copy link
Contributor

This PR has gone 7 days without any activity and meets the project’s definition of "stale". This will be auto-closed if there is no new activity over the next 7 days. If the issue is still relevant and active, you can simply comment with a "bump" to keep it open, or add the label "not_stale". Thanks for keeping our repository healthy!

@github-actions github-actions bot added the stale label Mar 16, 2025
@github-actions github-actions bot closed this Mar 19, 2025
@marcosuma
Copy link
Collaborator

Re-opening this issue while we still discuss internally. Apologies for further waiting on a decision here.

@marcosuma marcosuma reopened this Mar 19, 2025
@github-actions github-actions bot removed the stale label Mar 20, 2025
Copy link
Contributor

This PR has gone 7 days without any activity and meets the project’s definition of "stale". This will be auto-closed if there is no new activity over the next 7 days. If the issue is still relevant and active, you can simply comment with a "bump" to keep it open, or add the label "not_stale". Thanks for keeping our repository healthy!

@github-actions github-actions bot added the stale label Mar 25, 2025
@ridmagroupby
Copy link
Contributor Author

bump

@github-actions github-actions bot removed the stale label Mar 26, 2025
Copy link
Contributor

This PR has gone 7 days without any activity and meets the project’s definition of "stale". This will be auto-closed if there is no new activity over the next 7 days. If the issue is still relevant and active, you can simply comment with a "bump" to keep it open, or add the label "not_stale". Thanks for keeping our repository healthy!

@github-actions github-actions bot added the stale label Mar 31, 2025
@marcosuma
Copy link
Collaborator

Hi @ridmagroupby, once again thank you for your patience. Our team has reached a decision and we are going to move forward with this proposal. We'll make few changes to your proposal, such as changing the name of the field and add some clarity on the documentation. We want to make sure the usage of the field will be intuitive for everyone and be clear on "what it means" when customers use it.
Lastly, our engineer @EspenAlbert will take care of it. Because of our testing infrastructure, we'll need to work on a separate PR and he will add you as a contributor to that by cherry-picking some of your commits.

Let me know if you have any questions, and thank you for your contributions.

@ridmagroupby
Copy link
Contributor Author

@marcosuma @EspenAlbert thanks a lot for considering it. Please keep me in the loop if possible and lemme know if I can be any help further. I guess thats it for this PR then . Cheers thanks a lot !!!

Copy link
Contributor

github-actions bot commented Apr 9, 2025

This PR has gone 7 days without any activity and meets the project’s definition of "stale". This will be auto-closed if there is no new activity over the next 7 days. If the issue is still relevant and active, you can simply comment with a "bump" to keep it open, or add the label "not_stale". Thanks for keeping our repository healthy!

@github-actions github-actions bot added the stale label Apr 9, 2025
@EspenAlbert
Copy link
Collaborator

Merged in #3237 Thank you @ridmagroupby

@EspenAlbert EspenAlbert closed this Apr 9, 2025
@marcosuma
Copy link
Collaborator

Hi @ridmagroupby thank you once again for your PR and patience. Your change has been included with #3237 like Espen said. This should be out by the end of the week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants