Skip to content

Conversation

@sanjeet006py
Copy link
Contributor

@sanjeet006py sanjeet006py commented Sep 24, 2025

  • JIRA: PHOENIX-7704
  • This PR is consuming HBASE-29398, HBASE-28302, HBASE-29494 and HBASE-29626.
  • The PR has added a new phoenix-hbase-compat module for HBase 2.6.4 to consume the new metrics. Link to the Phoenix dev mailing list thread with alignment on creating new phoenix-hbase-compat module.
  • The new phoenix-hbase-compat-2.6.4 module is same as phoenix-hbase-compat-2.6.0 except for classes: CompatScanMetrics and CompatThreadLocalServerSideScanMetrics.
  • The PR is in draft state as HBase 2.6.4 has not been released in open source yet but once it's released we will need to do very minimal POM changes and no Java code change to upgrade the PR from draft state.

New metrics being added to Phoenix to be reported in query level read metrics:

  • frt: Time spent in reading a HBase block from HDFS/filesystem.
  • brff: Number of bytes read from HDFS to read the HBase Block. This will be case when the HBase block is not found in block cache or the block in block cache is corrupt.
  • brfm: Number of bytes read from memstore. Here the size of each cell read from memstore is summed.
  • brfc: Number of bytes read from block cache. This is the size of the block and the size computations are done in same manner as if the block was read from filesystem only. Thus, helps with apples-to-apples comparison of bytes read from FS vs block cache.
  • broc: Number of block read operations. If the HBase block was read from filesystem then this metric is also incremented by 1 per HBase block read. This along with brff can give better idea of overhead coming from block read when bytes read are same while HBase blocks read have increased.
  • rsp: Time spent in RPC scan processing. This is the time spent by scan RPC call scanning the rows by RSRpcServices#scan() method.
  • rsqw: Time spent in RPC scan queue wait. Time spent by a scan RPC call in server side call queue.

@virajjasani
Copy link
Contributor

@sanjeet006py at high level, the changes look good but I think once we have hbase 2.6 release, we should create separate PR for the new module without including phoenix metrics changes.
Then the separate changes for metrics will make it even better for review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants