[
https://issues.apache.org/jira/browse/PHOENIX-2671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ankit Singhal updated PHOENIX-2671:
-----------------------------------
Attachment: PHOENIX-2671.patch
[~jamestaylor], PFA, for review.
Problem is with doing checkAndPut on EMPTY_BYTE array as hbase consider that as
also null.
{code}
HRegion.class
@Override
public boolean checkAndMutate(byte [] row, byte [] family, byte [] qualifier,
CompareOp compareOp, ByteArrayComparable comparator, Mutation w,
boolean writeToWAL)
throws IOException{
...
else if (result.size() > 0 && result.get(0).getValueLength() == 0 &&
valueIsNull) {
matches = true;
}
{code}
Have raised the jira HBASE-15260 to either remove this check or fix the
documentation.
Attached patch should also fix the SYSTEM.CATALOG timestamp to
MIN_SYSTEM_TABLE_TIMESTAMP_4_7_0 after upgrade.
> System.STATS table getting truncated every time on new client connection
> ------------------------------------------------------------------------
>
> Key: PHOENIX-2671
> URL: https://issues.apache.org/jira/browse/PHOENIX-2671
> Project: Phoenix
> Issue Type: Bug
> Affects Versions: 4.7.0
> Reporter: Mujtaba Chohan
> Assignee: Ankit Singhal
> Priority: Blocker
> Fix For: 4.7.0
>
> Attachments: PHOENIX-2671.patch
>
>
> Every time a client connects, SYSTEM.STATS table gets truncated.
> Log:
> {code}
> coprocessor.MetaDataRegionObserver: Stats are successfully truncated for
> upgrade 4.7!!
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)