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

yi liang commented on HBASE-10358:
----------------------------------

    since all the method like table._scan_internal and _get_internal are really 
Modular, if we want to get stale information from get or scan, we need to 
change a lot of source code: add some new method and change some existing 
method in original code. So here I pass a array with size 1 to the existing 
method(_scan_internal and _get_internal), and after the array parameter pass 
into those method and get stale information, then we can show stale info to 
check whether the array[0] is false or true. To use this stale_argu after pass 
into those method, I have to pass the stale_argu by a reference. 
    This is my idea, pass a parameter into method to get stale info, and check 
this parameter value to decide whether show stale or not. To use this parameter 
after pass it into method, I use a array to pass by reference(kind of, because 
everything in ruby pass by value, like java). 

    or you have any good idea, I can have a try. 

> 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: Enis Soztutar
>             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
>
>
> We can add shell support to set consistency per request. 



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

Reply via email to