Skip to content

Commit

Permalink
fix ConcurrentModificationException by replacing HashMap with Concurr…
Browse files Browse the repository at this point in the history
…entHashMap (#476)
  • Loading branch information
YangYumings authored Jan 9, 2025
1 parent cf3540c commit c079610
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.CyclicBarrier;
import java.util.concurrent.ExecutionException;
Expand Down Expand Up @@ -285,7 +285,7 @@ private static void measure(
}
}

private static Map<Operation, String> sqlMap = new HashMap<>();
private static Map<Operation, String> sqlMap = new ConcurrentHashMap<>();

/**
* Each type of query is recorded once.
Expand Down

0 comments on commit c079610

Please sign in to comment.