leizhiyuan opened a new issue, #18198:
URL: https://github.com/apache/pulsar/issues/18198

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) 
and found nothing similar.
   
   
   ### Version
   
   master
   
   ### Minimal reproduce step
   
   review the code 
   
![image](https://user-images.githubusercontent.com/2684384/197919117-51a803d8-daff-4a80-bccc-1f0f6b4fa339.png)
   
   
   ### What did you expect to see?
   
   cache was cleaned normally
   
   ### What did you see instead?
   
   see the pic
   
   ### Anything else?
   
    private void handleDataNotification(Notification n) {
           if (n.getType() == NotificationType.Deleted) {
               ResourceLockImpl<T> lock = locks.get(n.getPath());
               if (lock != null) {
                   lock.lockWasInvalidated();
               }
           }
   
   // just do this 
           cache.invalidate(n.getPath());
       }
   
   ### Are you willing to submit a PR?
   
   - [X] I'm willing to submit a PR!


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