File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
server/src/main/java/org/opensearch/search/profile/fetch Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1212import org .opensearch .search .profile .Timer ;
1313
1414import java .util .ArrayList ;
15- import java .util .HashMap ;
1615import java .util .List ;
1716import java .util .Map ;
1817import java .util .Set ;
1918import java .util .TreeMap ;
19+ import java .util .concurrent .ConcurrentHashMap ;
20+ import java .util .concurrent .ConcurrentMap ;
2021
2122/**
2223 * Simplified profiling tree for fetch phase operations. Each fetch phase is
@@ -59,8 +60,8 @@ private static class Node {
5960 }
6061
6162 private final List <Node > roots = new ArrayList <>();
62- private final Map <String , Node > rootsMap = new HashMap <>();
63- private final Map <String , Node > phaseMap = new HashMap <>();
63+ private final ConcurrentMap <String , Node > rootsMap = new ConcurrentHashMap <>();
64+ private final ConcurrentMap <String , Node > phaseMap = new ConcurrentHashMap <>();
6465
6566 /** Start profiling a new fetch phase and return its breakdown. */
6667 FetchProfileBreakdown startFetchPhase (String element ) {
You can’t perform that action at this time.
0 commit comments