[jira] [Commented] (HBASE-6712) Implement checkAndIncrement

2014-06-04 Thread Jean-Marc Spaggiari (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-6712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14017904#comment-14017904
 ] 

Jean-Marc Spaggiari commented on HBASE-6712:


Do we still have any driver for this issue? Or should we resolve as Later?

 Implement checkAndIncrement
 ---

 Key: HBASE-6712
 URL: https://issues.apache.org/jira/browse/HBASE-6712
 Project: HBase
  Issue Type: New Feature
  Components: Client
Affects Versions: 0.92.1
Reporter: Stefan Baritchii
Assignee: Ted Yu

 increment should throw an exception if a row does not exist. instead it 
 creates the row. checkAndIncrement may be also a solution to it but needs 
 development.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-6712) Implement checkAndIncrement

2013-05-08 Thread Ted Yu (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-6712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13652154#comment-13652154
 ] 

Ted Yu commented on HBASE-6712:
---

@Raymond:
Do you have use case where the column to be incremented is different from the 
column being checked ?

 Implement checkAndIncrement
 ---

 Key: HBASE-6712
 URL: https://issues.apache.org/jira/browse/HBASE-6712
 Project: HBase
  Issue Type: New Feature
  Components: Client
Affects Versions: 0.92.1
Reporter: Stefan Baritchii
Assignee: Ted Yu

 increment should throw an exception if a row does not exist. instead it 
 creates the row. checkAndIncrement may be also a solution to it but needs 
 development.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (HBASE-6712) Implement checkAndIncrement

2013-05-08 Thread Raymond Liu (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-6712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13652603#comment-13652603
 ] 

Raymond Liu commented on HBASE-6712:


[~ted_yu]No, I don't, though it could easily figure one out. Originally, my 
point above is that if follow checkAndPut/Delete's style that only allow check 
and increment on the same column, we don't need to worry about idempotent issue 
as checkAndPut since we checking for equal. 

But now , I realized that, even so, we still need to treat it as Increment as 
HBASE-3787 is try to handle, since one checkAndIncrement might succeed to +1, 
then another succeed to -1, after that a retry of first +1 operation will pass 
the check and +1 again, which is not correct and non idempotent.

 Implement checkAndIncrement
 ---

 Key: HBASE-6712
 URL: https://issues.apache.org/jira/browse/HBASE-6712
 Project: HBase
  Issue Type: New Feature
  Components: Client
Affects Versions: 0.92.1
Reporter: Stefan Baritchii
Assignee: Ted Yu

 increment should throw an exception if a row does not exist. instead it 
 creates the row. checkAndIncrement may be also a solution to it but needs 
 development.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (HBASE-6712) Implement checkAndIncrement

2013-05-07 Thread Raymond Liu (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-6712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13651641#comment-13651641
 ] 

Raymond Liu commented on HBASE-6712:


[~ted_yu], Do you mean that checkAndIncrement could check on one column while 
increment another column? seems checkAndPut/Delete won't allow this?

 Implement checkAndIncrement
 ---

 Key: HBASE-6712
 URL: https://issues.apache.org/jira/browse/HBASE-6712
 Project: HBase
  Issue Type: New Feature
  Components: Client
Affects Versions: 0.92.1
Reporter: Stefan Baritchii
Assignee: Ted Yu

 increment should throw an exception if a row does not exist. instead it 
 creates the row. checkAndIncrement may be also a solution to it but needs 
 development.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (HBASE-6712) Implement checkAndIncrement

2013-04-28 Thread Lars Hofhansl (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-6712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13644231#comment-13644231
 ] 

Lars Hofhansl commented on HBASE-6712:
--

One aspect we need to be careful about is that checkAndPut and friend are 
idempotent. Increment is not. Then what about checkAndIncrement, would that be 
treated like an Increment, or like a checkAndPut?

 Implement checkAndIncrement
 ---

 Key: HBASE-6712
 URL: https://issues.apache.org/jira/browse/HBASE-6712
 Project: HBase
  Issue Type: New Feature
  Components: Client
Affects Versions: 0.92.1
Reporter: Stefan Baritchii
Assignee: Ted Yu

 increment should throw an exception if a row does not exist. instead it 
 creates the row. checkAndIncrement may be also a solution to it but needs 
 development.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (HBASE-6712) Implement checkAndIncrement

2013-04-28 Thread Ted Yu (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-6712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13644250#comment-13644250
 ] 

Ted Yu commented on HBASE-6712:
---

Looks like HBASE-3787 is related.

If the same column is checked and incremented, this can be treated as 
checkAndPut. Otherwise this should be treated as Increment.

More discussion would help clarify. 

 Implement checkAndIncrement
 ---

 Key: HBASE-6712
 URL: https://issues.apache.org/jira/browse/HBASE-6712
 Project: HBase
  Issue Type: New Feature
  Components: Client
Affects Versions: 0.92.1
Reporter: Stefan Baritchii
Assignee: Ted Yu

 increment should throw an exception if a row does not exist. instead it 
 creates the row. checkAndIncrement may be also a solution to it but needs 
 development.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (HBASE-6712) Implement checkAndIncrement

2012-09-03 Thread Lars Hofhansl (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-6712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13447394#comment-13447394
 ] 

Lars Hofhansl commented on HBASE-6712:
--

Also note that after HBASE-6522 it is possible to do this with a coprocessor 
endpoint.
(The missing part before was the coprocessors cannot take out locks)

 Implement checkAndIncrement
 ---

 Key: HBASE-6712
 URL: https://issues.apache.org/jira/browse/HBASE-6712
 Project: HBase
  Issue Type: New Feature
  Components: client
Affects Versions: 0.92.1
Reporter: Stefan Baritchii

 increment should throw an exception if a row does not exist. instead it 
 creates the row. checkAndIncrement may be also a solution to it but needs 
 development.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (HBASE-6712) Implement checkAndIncrement

2012-09-03 Thread Stefan Baritchii (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-6712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13447417#comment-13447417
 ] 

Stefan Baritchii commented on HBASE-6712:
-

@Lars: renaming fine with me. will also take a look into the coprocessor 
approach.

 Implement checkAndIncrement
 ---

 Key: HBASE-6712
 URL: https://issues.apache.org/jira/browse/HBASE-6712
 Project: HBase
  Issue Type: New Feature
  Components: client
Affects Versions: 0.92.1
Reporter: Stefan Baritchii

 increment should throw an exception if a row does not exist. instead it 
 creates the row. checkAndIncrement may be also a solution to it but needs 
 development.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira