Skip to content

Conversation

@nibix
Copy link
Contributor

@nibix nibix commented Oct 26, 2025

Description

This fixes a very specific issue in IndexNameExpressionResolver that was introduced in #18523. For requests with allow_no_indices = true, and an empty result set of matching expresssions, errors that were encountered before in WildcardExpressionResolver were not propagated.

This can happen only in very specific cases; the requirement that the result set is empty makes it necessary that the errors in WildcardExpressionResolver are triggered by negated expressions; otherwise, the result set of matching expressions would not be empty.

Check List

  • Functionality includes testing.

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.

@nibix nibix requested a review from a team as a code owner October 26, 2025 10:14
@nibix
Copy link
Contributor Author

nibix commented Oct 26, 2025

No changelog entry, as this fixes an issue introduced by a change that was not released yet.

@github-actions
Copy link
Contributor

❌ Gradle check result for d538aa4: 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
Copy link
Contributor

✅ Gradle check result for d538aa4: SUCCESS

@codecov
Copy link

codecov bot commented Oct 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.08%. Comparing base (147d6df) to head (d538aa4).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #19769      +/-   ##
============================================
- Coverage     73.09%   73.08%   -0.02%     
+ Complexity    70954    70901      -53     
============================================
  Files          5737     5737              
  Lines        324760   324766       +6     
  Branches      46980    46981       +1     
============================================
- Hits         237386   237354      -32     
- Misses        68220    68279      +59     
+ Partials      19154    19133      -21     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cwperks cwperks merged commit b6e6e3b into opensearch-project:main Oct 26, 2025
38 of 41 checks passed
anandpatel9998 pushed a commit to anandpatel9998/OpenSearch that referenced this pull request Nov 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants