michaelpearce-gain commented on a change in pull request #2759: ARTEMIS-2408 
Too many opened FDs after server stops
URL: https://github.com/apache/activemq-artemis/pull/2759#discussion_r305242382
 
 

 ##########
 File path: 
artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java
 ##########
 @@ -1269,6 +1269,8 @@ void stop(boolean failoverOnServerShutdown, final 
boolean criticalIOError, boole
          this.analyzer = null;
       }
 
+      activateCallbacks.clear();
 
 Review comment:
   So the fix should be in the component holding the external resource then. 
Not here. If a piece of code opens an external resource the logic and lifecycle 
of that must be managed by it properly. Seems this is just hiding the problem 
that a component is not managing its rource correctly and simply this is hiding 
that issue

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to