[ 
https://issues.apache.org/jira/browse/HBASE-12490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Solomon Duskis updated HBASE-12490:
-----------------------------------
    Description: 
The various uses of setAutoFlush() seem to need some tlc.  There's a note in 
HTableInterface: "@deprecated in 0.99 since setting clearBufferOnFail is 
deprecated. Use setAutoFlushTo(boolean) instead."  It would be ideal to change 
all internal uses of setAutoFlush(boolean, boolean) to use setAutoFlushTo, if 
possible.

HTable.setAutoFlush(boolean, boolean) is used in a handful of places.  
setAutoFlush(false, false) has the same results as HTable.setAutoFlush(false).  
Calling HTable.setAutoFlush(false, true) has the same affect as 
Table.setAutoFlushTo(false), assuming HTable.setAutoFlush(false) was not called 
previously.

  was:HTable.setAutoFlush(false, true) is used in a handful of places.  Given 
the use of the method, one possible improvement is to add the setAutoFlush 
method to the Table interface so that Tables don't have to be cast to HTable.


> Replace uses of setAutoFlush(boolean, boolean)
> ----------------------------------------------
>
>                 Key: HBASE-12490
>                 URL: https://issues.apache.org/jira/browse/HBASE-12490
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 2.0.0, 0.99.2
>            Reporter: Solomon Duskis
>
> The various uses of setAutoFlush() seem to need some tlc.  There's a note in 
> HTableInterface: "@deprecated in 0.99 since setting clearBufferOnFail is 
> deprecated. Use setAutoFlushTo(boolean) instead."  It would be ideal to 
> change all internal uses of setAutoFlush(boolean, boolean) to use 
> setAutoFlushTo, if possible.
> HTable.setAutoFlush(boolean, boolean) is used in a handful of places.  
> setAutoFlush(false, false) has the same results as 
> HTable.setAutoFlush(false).  Calling HTable.setAutoFlush(false, true) has the 
> same affect as Table.setAutoFlushTo(false), assuming 
> HTable.setAutoFlush(false) was not called previously.



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

Reply via email to