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

Hudson commented on HBASE-10252:
--------------------------------

FAILURE: Integrated in HBase-0.98-on-Hadoop-1.1 #42 (See 
[https://builds.apache.org/job/HBase-0.98-on-Hadoop-1.1/42/])
HBASE-10252 Don't write back to WAL/memstore when Increment amount is zero 
(tedyu: rev 1554312)
* 
/hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
* 
/hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestDurability.java


> Don't write back to WAL/memstore when Increment amount is zero (mostly for 
> query rather than update intention)
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-10252
>                 URL: https://issues.apache.org/jira/browse/HBASE-10252
>             Project: HBase
>          Issue Type: Improvement
>          Components: regionserver
>            Reporter: Feng Honghua
>            Assignee: Feng Honghua
>             Fix For: 0.98.0, 0.99.0
>
>         Attachments: HBASE-10252-trunk-v0.patch, HBASE-10252-trunk-v1.patch
>
>
> When user calls Increment by providing amount=0, we don't write the original 
> value to WAL or memstore : adding 0 yields a 'new' value just with the same 
> value as the original one.
> 1. user provides 0 amount for query rather than for update, this fix is ok; 
> this intention is the most possible case;
> 2. user provides 0 amount for an update, this fix is also ok : no need to 
> touch back-end value if that value isn't changed;
> 3. either case we both return correct value, and keep subsequent query 
> results correct : if the 0 amount Increment is the first update, the query is 
> the same for retrieving a 0 value or retrieving nothing;



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to