[
https://issues.apache.org/jira/browse/HBASE-16610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15493245#comment-15493245
]
Heng Chen commented on HBASE-16610:
-----------------------------------
In PE, append size is 26 bytes
{code}
static class AppendTest extends CASTableTest {
AppendTest(Connection con, TestOptions options, Status status) {
super(con, options, status);
}
@Override
void testRow(final int i) throws IOException {
byte [] bytes = format(i);
Append append = new Append(bytes);
append.add(FAMILY_NAME, getQualifier(), bytes);
updateValueSize(this.table.append(append));
}
}
public static byte [] format(final int number) {
byte [] b = new byte[ROW_LENGTH]; //26 by default
int d = Math.abs(number);
for (int i = b.length - 1; i >= 0; i--) {
b[i] = (byte)((d % 10) + '0');
d /= 10;
}
return b;
}
{code}
Very weird, Let me do more tests. Thanks [~stack]
> Unify append, increment with AP
> -------------------------------
>
> Key: HBASE-16610
> URL: https://issues.apache.org/jira/browse/HBASE-16610
> Project: HBase
> Issue Type: Sub-task
> Reporter: Heng Chen
> Assignee: Heng Chen
> Attachments: HBASE-16610.patch, HBASE-16610.v1.patch,
> HBASE-16610.v1.patch
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)