Description
The MerchantNameNormalizer object uses mutable hash maps without synchronization, which could lead to race conditions if accessed concurrently during sync operations.
Context
This issue was identified during the review of PR #26 and discussed in this comment thread.
Details
The following hash maps in MerchantNameNormalizer are not thread-safe:
These should be replaced with thread-safe alternatives or have appropriate synchronization added.
References
Description
The
MerchantNameNormalizerobject uses mutable hash maps without synchronization, which could lead to race conditions if accessed concurrently during sync operations.Context
This issue was identified during the review of PR #26 and discussed in this comment thread.
Details
The following hash maps in
MerchantNameNormalizerare not thread-safe:nameslogosmerchantIdsThese should be replaced with thread-safe alternatives or have appropriate synchronization added.
References