[ https://issues.apache.org/jira/browse/PHOENIX-2249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15054366#comment-15054366 ]
Rajeshbabu Chintaguntla edited comment on PHOENIX-2249 at 12/12/15 3:42 PM: ---------------------------------------------------------------------------- One minor nit: To avoid meta scan for non merging case we can just check whether store has any references are not. When there are no references there won't be merge regions as well. {noformat} Pair<HRegionInfo, HRegionInfo> mergeRegions = MetaTableAccessor.getRegionsFromMergeQualifier(conn, c.getEnvironment().getRegion().getRegionInfo().getRegionName()); {noformat} {noformat} store.hasReferences() {noformat} was (Author: rajeshbabu): One minor nit: To avoid meta scan non merging case we can just check whether store has any references are not. When there are no references there won't be merge regions as well. {noformat} Pair<HRegionInfo, HRegionInfo> mergeRegions = MetaTableAccessor.getRegionsFromMergeQualifier(conn, c.getEnvironment().getRegion().getRegionInfo().getRegionName()); {noformat} {noformat} store.hasReferences() {noformat} > SYSTEM.STATS not update after region merge occurs. > -------------------------------------------------- > > Key: PHOENIX-2249 > URL: https://issues.apache.org/jira/browse/PHOENIX-2249 > Project: Phoenix > Issue Type: Bug > Environment: Ubuntu server 14.04 > Hadoop 2.6.0 > HBase 1.0.0 > Phoenix 4.4.0-HBase-1.0.0 > Reporter: Kuan-Po Tseng > Assignee: Ankit Singhal > Fix For: 4.7.0 > > Attachments: PHOENIX-2249.patch, PHOENIX-2249_V1.patch > > > When region merge occurs, SYSTEM.STATS does not update, it will leave stale > information behind. And then if region splits on the merged region, this may > cause > "org.apache.phoenix.schema.StaleRegionBoundaryCacheException: ERROR 1108 > (XCL08): Cache of region boundaries are out of date" > after creating parallel scans since the stale information in SYSTEM.STATS > will let guide post list not sorted in ascending order and this will cause > scans over regions. -- This message was sent by Atlassian JIRA (v6.3.4#6332)