- 
                Notifications
    You must be signed in to change notification settings 
- Fork 25.6k
Non existing synonyms sets do not fail shard recovery #125659
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
          
     Merged
      
      
            carlosdelest
  merged 18 commits into
  elastic:main
from
carlosdelest:bugfix/synonyms-error-non-existing-synonyms
  
      
      
   
  Mar 27, 2025 
      
    
  
     Merged
                    Changes from 11 commits
      Commits
    
    
            Show all changes
          
          
            18 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      a77c9a4
              
                Use lenient to ignore non existing synonyms sets
              
              
                carlosdelest 88abdff
              
                Removes excluded synonyms set test
              
              
                carlosdelest 41e66ce
              
                [CI] Auto commit changes from spotless
              
              
                 ad8474f
              
                Change log level to warn
              
              
                carlosdelest 5a0149e
              
                Removed test that has been moved to 110_synonyms_invalid
              
              
                carlosdelest 1623a0e
              
                Merge remote-tracking branch 'carlosdelest/bugfix/synonyms-error-non-…
              
              
                carlosdelest 636bea9
              
                Use test features instead of capabilities
              
              
                carlosdelest dd3db4d
              
                Removed test is skipped from rest compat test
              
              
                carlosdelest ecb2f26
              
                Catch additional errors
              
              
                carlosdelest 444ca17
              
                :facepalm: use correct feature name
              
              
                carlosdelest 7967259
              
                Update docs/changelog/125659.yaml
              
              
                carlosdelest bb6f970
              
                Fix changelog
              
              
                carlosdelest b88fdc4
              
                Catch Exception to ensure we catch'em'all
              
              
                carlosdelest d78eff2
              
                Merge branch 'main' into bugfix/synonyms-error-non-existing-synonyms
              
              
                carlosdelest 5f813b1
              
                Merge branch 'main' into bugfix/synonyms-error-non-existing-synonyms
              
              
                carlosdelest 6ace60b
              
                Merge branch 'main' into bugfix/synonyms-error-non-existing-synonyms
              
              
                carlosdelest 19955f2
              
                Catch a mixed cluster warning header for reroute
              
              
                carlosdelest cec345f
              
                Merge remote-tracking branch 'carlosdelest/bugfix/synonyms-error-non-…
              
              
                carlosdelest File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| pr: 125659 | ||
| summary: Non existing synonyms sets do not fail shard recovery | ||
| area: "Analysis, Relevance" | ||
| type: bug | ||
| issues: | ||
| - 125603 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -165,34 +165,6 @@ setup: | |
| query: hola | ||
| - match: { hits.total.value: 1 } | ||
|  | ||
| --- | ||
| "Fail loading synonyms from index if synonyms_set doesn't exist": | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I moved this test to 100_synonyms_invalid | ||
| - do: | ||
| indices.create: | ||
| index: another_index | ||
| body: | ||
| settings: | ||
| index: | ||
| number_of_shards: 1 | ||
| analysis: | ||
| filter: | ||
| my_synonym_filter: | ||
| type: synonym | ||
| synonyms_set: set_missing | ||
| updateable: true | ||
| analyzer: | ||
| my_analyzer: | ||
| type: custom | ||
| tokenizer: standard | ||
| filter: [ lowercase, my_synonym_filter ] | ||
| mappings: | ||
| properties: | ||
| my_field: | ||
| type: text | ||
| search_analyzer: my_analyzer | ||
| - match: { acknowledged: true } | ||
| - match: { shards_acknowledged: false } | ||
|  | ||
| --- | ||
| "Load empty synonyms set from index for an analyzer": | ||
| - do: | ||
|  | ||
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is unrelated to this change, but a good opportunity to enable this test again