ibilley7 commented on PR #5803:
URL: https://github.com/apache/accumulo/pull/5803#issuecomment-3201746106

   I noticed that the `resizePool()` method resizes based on the maxThread 
property, and that when it's changed, the minThreads property is also changed 
to that new size in this code 
   ```
   if (newCount > count) {
         // increasing, increase the max first, or the core will fail to be 
increased
         pool.setMaximumPoolSize(newCount);
         pool.setCorePoolSize(newCount);
       } else {
         // decreasing, lower the core size first, or the max will fail to be 
lowered
         pool.setCorePoolSize(newCount);
         pool.setMaximumPoolSize(newCount);
       }
   ```
   
   Does that mean in the new `resizePool()` method I create for minThreads that 
when the CorePoolSize is changed, it would set the MaximumPoolSize to the same 
new value?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to