oleg-vlsk commented on code in PR #11425: URL: https://github.com/apache/ignite/pull/11425#discussion_r1885402437
########## modules/core/src/main/java/org/apache/ignite/internal/processors/query/running/SqlPlanHistoryTracker.java: ########## @@ -25,18 +25,13 @@ /** Class that manages recording and storing SQL plans. */ public class SqlPlanHistoryTracker { /** SQL plan history. */ - private GridBoundedConcurrentLinkedHashMap<SqlPlan, Long> sqlPlanHistory; - - /** SQL plan history size. */ - private int historySize; + private Map<SqlPlan, Long> sqlPlanHistory; /** - * @param historySize SQL plan history size. + * @param histSize SQL plan history size. */ - public SqlPlanHistoryTracker(int historySize) { - this.historySize = historySize; - - sqlPlanHistory = (historySize > 0) ? new GridBoundedConcurrentLinkedHashMap<>(historySize) : null; + public SqlPlanHistoryTracker(int histSize) { + sqlPlanHistory = (histSize > 0) ? new GridBoundedConcurrentLinkedHashMap<>(histSize) : Collections.emptyMap(); Review Comment: Done. -- 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: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org