gaozhangmin commented on a change in pull request #13204:
URL: https://github.com/apache/pulsar/pull/13204#discussion_r770292596



##########
File path: 
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/ServerCnx.java
##########
@@ -219,6 +208,7 @@ protected MutableLong initialValue() throws Exception {
             return Collections.newSetFromMap(new IdentityHashMap<>());
         }
     };
+    io.netty.util.internal.InternalThreadLocalMap threadLocalMap = 
io.netty.util.internal.InternalThreadLocalMap.get();

Review comment:
       This is used in `handlePulishBufferLimit: 
cnxsPerThread.get(threadLocalMap)`  Listener is trigged in another thread, and 
cnxsPerThread is a FastThreadLocal




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