zhtaoxiang commented on code in PR #10445:
URL: https://github.com/apache/pinot/pull/10445#discussion_r1141614529


##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/creator/impl/SegmentIndexCreationDriverImpl.java:
##########
@@ -175,7 +175,7 @@ public void init(SegmentGeneratorConfig config, 
SegmentCreationDataSource dataSo
 
     // Initialize index creation
     _segmentIndexCreationInfo = new SegmentIndexCreationInfo();
-    _indexCreationInfoMap = new HashMap<>();
+    _indexCreationInfoMap = new LinkedHashMap<>();

Review Comment:
   Thanks for working on this!
   
   I have some questions:
   1. Is the only goal to fix flaky tests?
   2. HashMap and LinkedHashMap have different performance on different 
operations. Changing HashMap to LinkedHashMap may slow down the index creation. 
This may be a problem it the index creation is slowed down too much. Did you 
try to compare the performance and can you share the results if you did?



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