edwardpro opened a new pull request, #21149: URL: https://github.com/apache/kafka/pull/21149
1. use lambda will run it every time even it's not necessary. 2. this map is concurrent hashmap, so we can use putIfAbsent safely, this will let us not to use lock to make sure this will execute once and will not overwrite by the other thread. -- 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]
