-
Notifications
You must be signed in to change notification settings - Fork 919
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
[Dynamic Config] Fix bug when attempting dynamic config index creation #8184
[Dynamic Config] Fix bug when attempting dynamic config index creation #8184
Conversation
❌ Empty Changelog SectionThe Changelog section in your PR description is empty. Please add a valid changelog entry or entries. If you did add a changelog entry, check to make sure that it was not accidentally included inside the comment block in the Changelog section. |
6a94643
to
f8964ad
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8184 +/- ##
==========================================
- Coverage 64.04% 64.04% -0.01%
==========================================
Files 3740 3740
Lines 88582 88608 +26
Branches 13791 13799 +8
==========================================
+ Hits 56731 56745 +14
- Misses 31253 31265 +12
Partials 598 598
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
#8184) * Fix bug when attempting dynamic config index creation Signed-off-by: Huy Nguyen <[email protected]> * Changeset file for PR #8184 created/updated --------- Signed-off-by: Huy Nguyen <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit 678c644) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
#8184) * Fix bug when attempting dynamic config index creation Signed-off-by: Huy Nguyen <[email protected]> * Changeset file for PR #8184 created/updated --------- Signed-off-by: Huy Nguyen <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit 678c644) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
#8184) (#8192) * Fix bug when attempting dynamic config index creation * Changeset file for PR #8184 created/updated --------- (cherry picked from commit 678c644) Signed-off-by: Huy Nguyen <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
#8184) (#8193) * Fix bug when attempting dynamic config index creation * Changeset file for PR #8184 created/updated --------- (cherry picked from commit 678c644) Signed-off-by: Huy Nguyen <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Description
This PR fixes a bug that can occur if the alias
.opensearch_dashboards_dynamic_config
exists but not the indexopensearch_dashboards_dynamic_config_N
. In particular the following test cases are as follows:.opensearch_dashboards_dynamic_config_N
.opensearch_dashboards_dynamic_config_1
.opensearch_dashboards_dynamic_config_*
index.opensearch_dashboards_dynamic_config_*
indexIssues Resolved
Testing the changes
Attached are the following cases when calling dev tools or by looking in application logs:
.opensearch_dashboards_dynamic_config_1
index.opensearch_dashboards_dynamic_config_N
present (used below curl command)curl -X PUT "http://localhost:9200/.opensearch_dashboards_dynamic_config_4"
.opensearch_dashboards_dynamic_config_1
present (used below curl command)curl -X PUT "http://localhost:9200/.opensearch_dashboards_dynamic_config_1"
.random_index_3
pointed to alias (used below curl command).opensearch_dashboards_dynamic_config_1
pointed to aliasChangelog
Check List
yarn test:jest
yarn test:jest_integration