yatsek / microemu

Automatically exported from code.google.com/p/microemu
0 stars 0 forks source link

infinite loop when reusing closed recordstore in applet #61

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. openRecordStore and save a value
2. closeRecordStore
3. openRecordStore again and save/read it

What is the expected output? What do you see instead?
get the old value/get a hint there is no such value

Instead it will loop indefinitly, trying to enumerate the RecordStore's entries.

What version of the product are you using? On what operating system?
3.0.0 Snapshot dated 2010-Jul-20

Please provide any additional information below.
This probably relates to r2390: "Clear the records cache when closing the 
record store" - the MemoryRecordStore used in the applet will not reset its 
number of records counter upon this reset, so the RecordEnumerationImpl 
livelocks looking for them...

The MemoryRecordStore needs either its counter reset or its own cache.

Original issue reported on code.google.com by chrisdra...@gmail.com on 15 Aug 2010 at 3:49