[
https://issues.apache.org/jira/browse/HBASE-10358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15301169#comment-15301169
]
Enis Soztutar commented on HBASE-10358:
---------------------------------------
For the scan, {{is_stale}} should be computed by the logic "if any row is
stale". The following logic only looks at the last row:
{code}
while iter.hasNext
row = iter.next
key = org.apache.hadoop.hbase.util.Bytes::toStringBinary(row.getRow)
+ is_stale = row.isStale
{code}
This should be something like {{is_stale |= row.isStale}}.
Instead of adding stale method to formatter, I think we should add isStale
argument to the footer method. Printing footer should not be a two-step
operation.
> Shell changes for setting consistency per request
> -------------------------------------------------
>
> Key: HBASE-10358
> URL: https://issues.apache.org/jira/browse/HBASE-10358
> Project: HBase
> Issue Type: New Feature
> Components: shell
> Reporter: Enis Soztutar
> Assignee: yi liang
> Fix For: 2.0.0
>
> Attachments: Screen Shot 2016-04-21 at 3.09.52 PM.png, Screen Shot
> 2016-05-05 at 10.38.27 AM.png, shell.patch, shell_3.patch
>
>
> We can add shell support to set consistency per request.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)