Skip to content

Prevent calling filterFields multiple times on indices with the same mappings in GET _mapping#19914

Draft
cwperks wants to merge 3 commits intoopensearch-project:mainfrom
cwperks:dedup-mappings
Draft

Prevent calling filterFields multiple times on indices with the same mappings in GET _mapping#19914
cwperks wants to merge 3 commits intoopensearch-project:mainfrom
cwperks:dedup-mappings

Conversation

@cwperks
Copy link
Copy Markdown
Member

@cwperks cwperks commented Nov 6, 2025

Description

The PR contains a slight optimization for handling GET _mapping API when a fieldFilter is present (particularly in cases where the user has FLS restrictions on indices). The changes in this PR will filter the mappings once for indices which share the same mappings such as in cases with rollover indices.

There are still many issues with the GET _mapping API and its memory consumption, but the changes in this PR present one further optimization that can be done to improve the performance of this API in some cases.

Related Issues

Related to opensearch-project/OpenSearch-Dashboards#10047

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

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.

…mappings in GET _mapping

Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Nov 7, 2025

❌ Gradle check result for 6bff013: null

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?

@opensearch-trigger-bot
Copy link
Copy Markdown
Contributor

This PR is stalled because it has been open for 30 days with no activity.

@opensearch-trigger-bot opensearch-trigger-bot bot added the stalled Issues that have stalled label Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stalled Issues that have stalled

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant