File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed 
server/src/main/java/org/elasticsearch/cluster/metadata 
x-pack/qa/full-cluster-restart/src/test/java/org/elasticsearch/xpack/restart Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1+ pr : 84780 
2+ summary : Fix `NullPointerException` in `SystemIndexMetadataUpgradeService` hidden 
3+   alias handling 
4+ area : Infra/Core 
5+ type : bug 
6+ issues :
7+  - 81411 
Original file line number Diff line number Diff line change @@ -106,9 +106,9 @@ public ClusterState execute(ClusterState currentState) throws Exception {
106106                        builder .settings (Settings .builder ().put (indexMetadata .getSettings ()).put (IndexMetadata .SETTING_INDEX_HIDDEN , true ));
107107                        updated  = true ;
108108                    }
109-                     if  (isSystem  && indexMetadata .getAliases ().values ().stream ().anyMatch (a  -> a .isHidden () ==  false )) {
109+                     if  (isSystem  && indexMetadata .getAliases ().values ().stream ().anyMatch (a  -> Boolean . FALSE . equals ( a .isHidden ()) )) {
110110                        for  (AliasMetadata  aliasMetadata  : indexMetadata .getAliases ().values ()) {
111-                             if  (aliasMetadata .isHidden () ==  false ) {
111+                             if  (Boolean . FALSE . equals ( aliasMetadata .isHidden ()) ) {
112112                                builder .removeAlias (aliasMetadata .alias ());
113113                                builder .putAlias (
114114                                    AliasMetadata .builder (aliasMetadata .alias ())
Original file line number Diff line number Diff line change @@ -98,7 +98,6 @@ public void testSingleDoc() throws IOException {
9898        assertThat (toStr (client ().performRequest (getRequest )), containsString (doc ));
9999    }
100100
101-     @ AwaitsFix (bugUrl  = "https://github.com/elastic/elasticsearch/issues/81411" )
102101    public  void  testSecurityNativeRealm () throws  Exception  {
103102        if  (isRunningAgainstOldCluster ()) {
104103            createUser (true );
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments