sijie commented on a change in pull request #6178: Introduce 
maxMessagePublishBufferSizeInMB configuration to avoid broker OOM
URL: https://github.com/apache/pulsar/pull/6178#discussion_r379169282
 
 

 ##########
 File path: 
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
 ##########
 @@ -2011,4 +2033,34 @@ public ConfigField(Field field) {
             return Optional.empty();
         }
     }
+
+    private void checkMessagePublishBuffer() {
+        currentMessagePublishBufferSize = 0;
 
 Review comment:
   It seems to me that this variable doesn't have to be a class variable of 
`BrokerService`. It can just be a local variable, right?

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