[ 
https://issues.apache.org/jira/browse/HBASE-16731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15567675#comment-15567675
 ] 

ramkrishna.s.vasudevan commented on HBASE-16731:
------------------------------------------------

Nice one.
So here
{code}
        if (this.filter == null || !scan.doLoadColumnFamiliesOnDemand()
          || this.filter.isFamilyEssential(entry.getKey())) {
          scanners.add(scanner);
        } else {
          joinedScanners.add(scanner);
        }
{code}
In case of scans the region's default true property for on demand family 
loading works fine and hence it goes to the else case but in 'gets' it goes to 
the 'if' case. Just saw in code that we have a region level property for this.
So to make things simple here is it not enough that 
{code}
    Scan scan = new Scan(get);
{code}
After this just set the scan with
{code}
 scan.setLoadColumnFamiliesOnDemand(region.isLoadingCfsOnDemandDefault());
{code}
So you plan to override this from the client side also - by adding a new 
feature to 'gets' also?

> Inconsistent results from the Get/Scan if we use the empty FilterList
> ---------------------------------------------------------------------
>
>                 Key: HBASE-16731
>                 URL: https://issues.apache.org/jira/browse/HBASE-16731
>             Project: HBase
>          Issue Type: Bug
>            Reporter: ChiaPing Tsai
>            Assignee: ChiaPing Tsai
>            Priority: Minor
>             Fix For: 2.0.0
>
>         Attachments: HBASE-16731.v0.patch, HBASE-16731.v1.patch, 
> HBASE-16731.v2.patch
>
>
> RSRpcServices#get() converts the Get to Scan without 
> scan#setLoadColumnFamiliesOnDemand. It causes that the result retrieved from 
> Get and Scan will be different if we use the empty filter. Scan doesn't 
> return any data but Get does.
> see [HBASE-16729 |https://issues.apache.org/jira/browse/HBASE-16729]
> Any comments? Thanks.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to