Jason918 commented on a change in pull request #13618:
URL: https://github.com/apache/pulsar/pull/13618#discussion_r785386207



##########
File path: 
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/Consumer.java
##########
@@ -102,7 +102,7 @@
 
     private final ConsumerStatsImpl stats;
 
-    private volatile int maxUnackedMessages;
+    private final boolean maxUnackedMessagesEnabled;

Review comment:
       This `maxUnackedMessagesEnabled` is used for the purpose of disabling 
"unacked messages check" feature on consumer level for  non-durable 
subscriptions. Following previous logic, see
   
   
https://github.com/apache/pulsar/blob/af761e2f8d3aee35c2cf081998f556972a92b574/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentTopic.java#L756-L758




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