poorbarcode commented on code in PR #17632:
URL: https://github.com/apache/pulsar/pull/17632#discussion_r970363464


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/LoadSheddingTask.java:
##########
@@ -52,25 +55,24 @@ public void run() {
         } catch (Exception e) {

Review Comment:
   At the first line of method `run`, we can add a check to make quick failure:
   
   ```java
   
   public void run(){
       if (isCancel){
           return;
       }
       ...
   }
   
   ```



-- 
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