You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/06/14 12:54:45 UTC

[GitHub] [pulsar] hellozepp opened a new issue #4535: NPE in UnAckedMessageTrackerDisabled#size()

hellozepp opened a new issue #4535: NPE in UnAckedMessageTrackerDisabled#size()
URL: https://github.com/apache/pulsar/issues/4535
 
 
   **Describe the bug**
   NPE in UnAckedMessageTrackerDisabled#size()
   
   If `ackTimeout` is not set, `unAckedMessageTracker` will be assigned the value `UNACKED_MESSAGE_TRACKER_DISABLED`.
   
   Look `UnAckedMessageTrackerDisabled` not Override the `size()` method.
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. Create a consumer and do not set `ackTimeout`
   2. Call the size() use the following code.
   `((ConsumerImpl<byte[]>) consumer).getUnAckedMessageTracker().size()`
   
   **Expected behavior**
   This is a disabled method. We can get a default value. Such as 0. 
   
   **Desktop (please complete the following information):**
    - OS: MacOS
   
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services