[
https://issues.apache.org/jira/browse/HBASE-22011?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16789123#comment-16789123
]
Allan Yang commented on HBASE-22011:
------------------------------------
[~luffy123], nice finding! +1 for the patch, will commit it later today.
> ThriftUtilities.getFromThrift should set filter when not set columns
> --------------------------------------------------------------------
>
> Key: HBASE-22011
> URL: https://issues.apache.org/jira/browse/HBASE-22011
> Project: HBase
> Issue Type: Bug
> Affects Versions: 2.2.0
> Reporter: Bing Xiao
> Assignee: Bing Xiao
> Priority: Major
> Fix For: 2.2.1
>
> Attachments: HBASE-22011-branch-2-v1.patch,
> HBASE-22011-branch-2.2-v1.patch, HBASE-22011-v1.patch
>
>
> ThriftUtilities.getFromThrift, if TGet wihtout columns the filter is ignore.
> {code:java}
> if (!in.isSetColumns()) {
> return out;
> }
> for (TColumn column : in.getColumns()) {
> if (column.isSetQualifier()) {
> out.addColumn(column.getFamily(), column.getQualifier());
> } else {
> out.addFamily(column.getFamily());
> }
> }
> if (in.isSetFilterBytes()) {
> out.setFilter(filterFromThrift(in.getFilterBytes()));
> }{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)