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

Remove handling of index.mapper.dynamic in AutoCreateIndex #13067

Merged
merged 3 commits into from
Apr 5, 2024

Conversation

cwperks
Copy link
Member

@cwperks cwperks commented Apr 3, 2024

Description

This removes the last usage of index.mapper.dynamic which was deprecated before the fork.

Reading the setting in this class is dead code because the settings object passed into the constructor of AutoCreateIndex is the node settings and index.mapper.dynamic is an index setting.

Related Issues

Resolves #12416

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Failing checks are inspected and point to the corresponding known issue(s) (See: Troubleshooting Failing Builds)
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)
  • Public documentation issue/PR created

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Craig Perkins <cwperx@amazon.com>
@github-actions github-actions bot added bug Something isn't working Indexing Indexing, Bulk Indexing and anything related to indexing v2.13.0 Issues and PRs related to version 2.13.0 labels Apr 3, 2024
Signed-off-by: Craig Perkins <cwperx@amazon.com>
@cwperks cwperks removed the v2.13.0 Issues and PRs related to version 2.13.0 label Apr 3, 2024
@cwperks cwperks removed Indexing Indexing, Bulk Indexing and anything related to indexing bug Something isn't working labels Apr 3, 2024
Copy link
Contributor

github-actions bot commented Apr 3, 2024

Compatibility status:

Checks if related components are compatible with change c06fa46

Incompatible components

Skipped components

Compatible components

Compatible components: [https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/flow-framework.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/performance-analyzer.git]

Copy link
Contributor

github-actions bot commented Apr 3, 2024

❌ Gradle check result for 5ba2fb1: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@reta
Copy link
Collaborator

reta commented Apr 3, 2024

#13039 needs to get in first :(

Copy link
Contributor

github-actions bot commented Apr 3, 2024

❌ Gradle check result for d7999d5: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@github-actions github-actions bot added bug Something isn't working Indexing Indexing, Bulk Indexing and anything related to indexing v2.13.0 Issues and PRs related to version 2.13.0 labels Apr 4, 2024
Copy link
Contributor

github-actions bot commented Apr 4, 2024

❕ Gradle check result for c06fa46: UNSTABLE

  • TEST FAILURES:
      1 org.opensearch.smoketest.SmokeTestMultiNodeClientYamlTestSuiteIT.test {yaml=search.aggregation/20_terms/string profiler via global ordinals}

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

Copy link

codecov bot commented Apr 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.44%. Comparing base (b15cb0c) to head (c06fa46).
Report is 133 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #13067      +/-   ##
============================================
+ Coverage     71.42%   71.44%   +0.02%     
- Complexity    59978    60378     +400     
============================================
  Files          4985     5026      +41     
  Lines        282275   284460    +2185     
  Branches      40946    41198     +252     
============================================
+ Hits         201603   203246    +1643     
- Misses        63999    64374     +375     
- Partials      16673    16840     +167     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@deshsidd
Copy link
Contributor

deshsidd commented Apr 4, 2024

Thanks for the refactoring!

@reta reta merged commit 55f6b5d into opensearch-project:main Apr 5, 2024
34 of 35 checks passed
@reta reta added v2.14.0 and removed v2.13.0 Issues and PRs related to version 2.13.0 labels Apr 5, 2024
shiv0408 pushed a commit to Gaurav614/OpenSearch that referenced this pull request Apr 25, 2024
…rch-project#13067)

* Remove reference to INDEX_MAPPER_DYNAMIC_SETTING in AutoCreateIndex

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Add to CHANGELOG

Signed-off-by: Craig Perkins <cwperx@amazon.com>

---------

Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Shivansh Arora <hishiv@amazon.com>
@andrross andrross added backport 2.x Backport to 2.x branch and removed v2.14.0 labels May 7, 2024
opensearch-trigger-bot bot pushed a commit that referenced this pull request May 7, 2024
* Remove reference to INDEX_MAPPER_DYNAMIC_SETTING in AutoCreateIndex

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Add to CHANGELOG

Signed-off-by: Craig Perkins <cwperx@amazon.com>

---------

Signed-off-by: Craig Perkins <cwperx@amazon.com>
(cherry picked from commit 55f6b5d)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@andrross
Copy link
Member

andrross commented May 7, 2024

FYI @reta I removed the 2.14 label as it seems this has not yet been backported.

andrross pushed a commit that referenced this pull request May 7, 2024
…#13588)

* Remove reference to INDEX_MAPPER_DYNAMIC_SETTING in AutoCreateIndex



* Add to CHANGELOG



---------


(cherry picked from commit 55f6b5d)

Signed-off-by: Craig Perkins <cwperx@amazon.com>
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch bug Something isn't working Indexing Indexing, Bulk Indexing and anything related to indexing
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Remove all handling of index.mapper.dynamic
4 participants