Technoboy- commented on PR #24980:
URL: https://github.com/apache/pulsar/pull/24980#issuecomment-3550609006

   Which logic could cause this issue ?
   ```
   Request-1: policyCacheInitMap put future1
   Request-1: create reader1
   Request-1: readerCaches put reader1
   reader1 read error
   Request-1: first time cleanCacheAndCloseReader(), include:
           remove reader1 in readerCaches
           close reader1
           remove future1 in policyCacheInitMap
   
   Request-2: policyCacheInitMap put future2
   Request-1: second time cleanCacheAndCloseReader(), only remove future2 in 
policyCacheInitMap
   Request-2: create reader2
   Request-2: readerCaches put reader2
   
   Request-3: policyCacheInitMap put future3
   Request-3: create reader3
   Request-3: readerCaches put reader3
   ```


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