Issue Details (XML | Word | Printable)

Key: NUCHBASE-16
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Erik Bengtson
Reporter: Kelly Cheng
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
DataNucleus Store HBase

Hbase Put Always Deletes Record

Created: 04/Feb/10 02:51 AM   Updated: 27/Jan/11 07:54 PM   Resolved: 04/Feb/10 06:39 PM
Component/s: None
Affects Version/s: 1.0.3, 1.0.4
Fix Version/s: 1.0.5

Environment:
OS: windows 7
Jetty Client using datanucleus-hbase-1.0.4
HBase-0.20.2 server
zookeeper 3.2.2

Forum Thread URL: http://old.nabble.com/Data-Nucleus-and-HBase---Problems-during-Update-td27348051.html#a27445970
Datastore: Other


 Description  « Hide
Updates issued for persistent objects issues a delete and removes the record.

more details are here:
http://www.jpox.org/servlet/forum/viewthread_thread,5939
http://old.nabble.com/Data-Nucleus-and-HBase---Problems-during-Update-td27348051.html#a27445970

From inspecting the source and from help from Tatsuya, it looks like the issue has been present since 1.0.3:

             if( !put.isEmpty() )
             {
                 table.put(put);
             }
             if( !put.isEmpty() )
             {
                 table.delete(delete);
             }
             table.close();


Erik Bengtson made changes - 04/Feb/10 06:39 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 1.0.5 [ 10850 ]
Resolution Fixed [ 1 ]
Erik Bengtson made changes - 04/Feb/10 06:39 PM
Comment [ Can you provide a test case?

It seems that Tatsuya spotted easily the issue, the problem is that I dont understand why I cant put and delete? We are deleting attributes that were nullified and putting attributes modified. ]
Erik Bengtson made changes - 04/Feb/10 06:39 PM
Assignee Erik Bengtson [ erik ]
Andy Jefferson made changes - 27/Jan/11 07:54 PM
Status Resolved [ 5 ] Closed [ 6 ]