Issues with Chaidb

Help
dawn
2007-02-15
2013-04-18
  • dawn

    dawn - 2007-02-15

    I found couple of issues with chaidb.

    1. First constructor of ByteArrayKey shoud have key allocated. else it will end up in Null pointer exception.
    3. I was able to store one data but on next store it gives me following error
    at org.chaidb.db.index.btree.BTreePage.sortKey(BTreePage.java:1005)
            at org.chaidb.db.index.btree.BTreePage.insertNode(BTreePage.java:469)
            at org.chaidb.db.index.btree.BTreePage.insertWhenCurNodeLessThanOrder(BTreePage.java:1401)
            at org.chaidb.db.index.btree.BTreePage.insert(BTreePage.java:1054)
            at org.chaidb.db.index.btree.AbstractBTree.store(AbstractBTree.java:589)
            at org.chaidb.db.index.btree.AbstractBTree.store(AbstractBTree.java:624)
            at org.chaidb.db.api.BTree.store(BTree.java:107)
            at org.chaidb.db.api.BTree.store(BTree.java:90)

     
    • chaidb-admin

      chaidb-admin - 2007-03-16

      1. First constructor of ByteArrayKey shoud have key allocated. else it will end up in Null pointer exception.

      Yes. ByteArrayKey should have key allocated in the constructor. There should be check logic to be added in the constructor.

      3. I was able to store one data but on next store it gives me following error
      at org.chaidb.db.index.btree.BTreePage.sortKey(BTreePage.java:1005)
      at org.chaidb.db.index.btree.BTreePage.insertNode(BTreePage.java:469)
      at org.chaidb.db.index.btree.BTreePage.insertWhenCurNodeLessThanOrder(BTreePage.java:1401)
      at org.chaidb.db.index.btree.BTreePage.insert(BTreePage.java:1054)
      at org.chaidb.db.index.btree.AbstractBTree.store(AbstractBTree.java:589)
      at org.chaidb.db.index.btree.AbstractBTree.store(AbstractBTree.java:624)
      at org.chaidb.db.api.BTree.store(BTree.java:107)
      at org.chaidb.db.api.BTree.store(BTree.java:90)

      Could you please paste some code here? Which kind of BTree did you use? BTREE or HYPER_BTREE?, and which store mode did you use? Insert or Replace?

       

Log in to post a comment.