kazu2012 / persevere-framework

Automatically exported from code.google.com/p/persevere-framework
0 stars 0 forks source link

Cannot modify and delete the same object in one transaction #277

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Generate a new Persevere app
2. Copy the attached JS file to WEB-INF/jslib/
3. Call test() from the JS prompt, or:
    var p = new Pending(100);
    new ExecutedOrder(p, 100);

What is the expected output? What do you see instead?
Expected: "delete: Pending/XXX; quantity=0" and the Pending object gets deleted.

Actual: "delete: Pending/XXX; quantity=0" isn't called unless the lines marked 
(1) are toggled (commented/uncommented, respectively). Either way, the object 
OCCASIONALLY doesn't get deleted. If commit() is called before remove(), this 
problem goes away.

What version of the product are you using? On what operating system?
Persevere v1.0.2rc1, running on Lucid (Ubuntu 10.04)

Please provide any additional information below.
I'm not sure whether this is because remove() is called while another class is 
being initialized, or if it truly is a case of modifying and deleting the same 
object in one transaction.

Original issue reported on code.google.com by remoun.metyas on 14 Aug 2010 at 6:18

Attachments: