Vsevolod Kovalev created IGNITE-26973:
-----------------------------------------
Summary: IndexProcessor: ConcurrentHashMap under RW-lock;
reconsider redundant idxDefs map
Key: IGNITE-26973
URL: https://issues.apache.org/jira/browse/IGNITE-26973
Project: Ignite
Issue Type: Improvement
Reporter: Vsevolod Kovalev
Assignee: Vsevolod Kovalev
{{_*IndexProcessor*_}} guards access with a {_}{{ReentrantReadWriteLock}}{_},
yet both {{_cacheToIdx_}} and {{_idxDefs_}} are {{{}_ConcurrentHashMap_{}}}.
This likely adds overhead without benefit.
Additionally, {{_idxDefs_}} ({{{}_UUID → IndexDefinition_{}}}) appears
redundant because Index already holds its {{_IndexDefinition_}} and exposes the
{{{}_UUID_{}}}.
*Action items:*
* Audit read/write paths to confirm lock coverage.
* If confirmed, replace both with plain HashMap.
* Evaluate removing idxDefs in favor of retrieving IndexDefinition from Index;
refactor call sites if feasible.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)