File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed 
plugins/arrow-flight-rpc/src/main/java/org/opensearch/arrow/flight/bootstrap Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,10 @@ private static class Netty4Configs {
238238
239239        @ SuppressForbidden (reason  = "required for netty allocator configuration" )
240240        public  static  void  init (Settings  settings ) {
241-             checkSystemProperty ("io.netty.allocator.numDirectArenas" , "1" );
241+             int  numArenas  = Integer .parseInt (System .getProperty ("io.netty.allocator.numDirectArenas" ));
242+             if  (numArenas  <= 0 ) {
243+                 throw  new  IllegalStateException ("io.netty.allocator.numDirectArenas must be > 0" );
244+             }
242245            checkSystemProperty ("io.netty.noUnsafe" , "false" );
243246            checkSystemProperty ("io.netty.tryUnsafe" , "true" );
244247            checkSystemProperty ("io.netty.tryReflectionSetAccessible" , "true" );
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments