Details
Description
Log messages "INFO YarnAllocator: Resource profile 0 doesn't exist, adding it" repeats multiple times in yarn stderr.
The log should be outputted only once because it happens in YarnAllocator.createYarnResourceForResourceProfile on a default ResourceProfile
After digging into the code, I found a bug caused by misleading usage of ConcurrentHashMap.contains