rclabo opened a new issue #417: URL: https://github.com/apache/lucenenet/issues/417
Recently I saw that David Fowler, lead architect on the .Net Core team at Microsoft, commented that one of the common issues that he has observed is that when people use `ConcurrentDictionary` they don't take into account that the `GetOrAdd` method executes the creation callback more than once. And this can be a problem if the code is creating something expensive for example. Apparently this is documented but certainly not the behavior that one would expect. We should review the use of `ConcurrentDictionary` `GetOrAdd` calls to ensure we are accounting for this odd behavior.  ---------------------------------------------------------------- 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: [email protected]
