sigram commented on code in PR #3634:
URL: https://github.com/apache/solr/pull/3634#discussion_r2330580172


##########
solr/test-framework/src/java/org/apache/solr/search/CallerSpecificQueryLimit.java:
##########
@@ -53,10 +54,10 @@ public class CallerSpecificQueryLimit implements QueryLimit 
{
   // className -> set of method names
   private final Map<String, Set<String>> interestingCallers = new HashMap<>();
   // expr -> initial count
-  private final Map<String, Integer> maxCounts = new HashMap<>();
+  private final Map<String, Integer> maxCounts = new ConcurrentHashMap<>();

Review Comment:
   Turns out an ordinary HashMap doesn't like multi-threaded modifications.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to