rollback on insertion

Help
derek dick
2003-05-07
2003-05-07
  • derek dick

    derek dick - 2003-05-07

    hi, i'm just starting with some JDBM  test cases.

    i successfully created a file, added and committed some data,  then inserted an object and called rollback.  if i do a get() on that key, this Error occurs.

    java.lang.Error: double get for block 0
    jdbm.recman.RecordFile.get(RecordFile.java:153)    jdbm.recman.PhysicalRowIdManager.fetch(PhysicalRowIdManager.java:119) jdbm.recman.RecordManager.fetchObject(RecordManager.java:235)
    jdbm.helper.ObjectCache.fetchObject(ObjectCache.java:104)
    jdbm.hash.HashDirectory.get(HashDirectory.java:187)
    jdbm.hash.HTree.get(HTree.java:142)
    etc...

    it thinks the key is in use but i'm pretty sure the rollback code cleared all the caches/buffers.

    *note : i also get this same error if i just get the enumeration of keys, so its not specific to the "get()" operation.    also, the rollback worked fine for overwritten data.

     
    • Alex Boisvert

      Alex Boisvert - 2003-05-07

      Can you post the code for your test case?  I will have a look at it and try to reproduce and fix the problem.

      thanks,
      alex

       

Log in to post a comment.