Viraj Jasani created PHOENIX-7724:
-------------------------------------
Summary: CompactionScanner PTable usage should use getTable()
Key: PHOENIX-7724
URL: https://issues.apache.org/jira/browse/PHOENIX-7724
Project: Phoenix
Issue Type: Improvement
Reporter: Viraj Jasani
Phoenix implements it's own version of major and minor compactions using
CompactionScanner to avoid data integrity issues at the row version retentions,
rather than operate at the column family level.
CompactionScanner is initialized with PTable object for the given table. We use
conn.getTableNoCache() to retrieve the PTable for both minor and major
compactions, which results in rpc call to SYSTEM.CATALOG regardless of whether
the regionserver has the PTable object in it's cache.
With large amount of data and higher num of regions, compaction occurrence
would be more frequent. It has tendency to generate large amount of rpc calls
at some point.
To avoid this, the purpose of this Jira is to use conn.getTable(), which uses
client side cache if PTable is already available to prevent rpc call to syscat.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)