BTrDB / btrdb-server

Berkeley Tree Database (BTrDB) server
http://btrdb.io
MIT License
909 stars 66 forks source link

Error: Strange datablock type #28

Closed shubhamjain0594 closed 8 years ago

shubhamjain0594 commented 8 years ago

I am using BTrDb with Mr.Plotter. Everything was working fine when, one day I accessed Mr.Plotter and suddenly btrdb stopped working. I am unable to send data to the database, as whenever it receives it gives following error and breaks down:

panic: Strange datablock type

goroutine 15 [running]:
github.com/op/go-logging.(*Logger).Panic(0xc20803a900, 0xc2080b69b0, 0x1, 0x1)
        /home/ubuntu/raqmn/go/src/github.com/op/go-logging/logger.go:188 +0xc0
github.com/SoftwareDefinedBuildings/btrdb/internal/bstore.(*BlockStore).ReadDatablock(0xc2080841b0, 0xc20c93e048, 0x10, 0x5b8, 0x10000000000367, 0x3, 0xc2080e9938, 0xf000000000000000, 0x0, 0x0)
        /home/ubuntu/raqmn/go/src/github.com/SoftwareDefinedBuildings/btrdb/internal/bstore/blockstore.go:331 +0x6a6
github.com/SoftwareDefinedBuildings/btrdb/qtree.(*QTree).LoadNode(0xc2080e9950, 0x10000000000367, 0x3, 0x538, 0xf000000000000000, 0xc2080e9920, 0x0, 0x0)
        /home/ubuntu/raqmn/go/src/github.com/SoftwareDefinedBuildings/btrdb/qtree/qtree_utils.go:120 +0xc1
github.com/SoftwareDefinedBuildings/btrdb/qtree.NewReadQTree(0xc2080841b0, 0xc20c93e048, 0x10, 0x5b8, 0xffffffffffffffff, 0x20, 0x0, 0x0)
        /home/ubuntu/raqmn/go/src/github.com/SoftwareDefinedBuildings/btrdb/qtree/qtree_utils.go:187 +0x185
github.com/SoftwareDefinedBuildings/btrdb.(*Quasar).QueryValuesStream(0xc2080bc000, 0xc20c93e048, 0x10, 0x5b8, 0x1470cd147b97c60d, 0x1470d05aac51fa9e, 0xffffffffffffffff, 0x0, 0x20, 0x0)
        /home/ubuntu/raqmn/go/src/github.com/SoftwareDefinedBuildings/btrdb/quasar.go:194 +0x5d
github.com/SoftwareDefinedBuildings/btrdb/cpinterface.func·010()
        /home/ubuntu/raqmn/go/src/github.com/SoftwareDefinedBuildings/btrdb/cpinterface/cpinterface.go:94 +0x402
created by github.com/SoftwareDefinedBuildings/btrdb/cpinterface.(*CPInterface).dispatchCommands
        /home/ubuntu/raqmn/go/src/github.com/SoftwareDefinedBuildings/btrdb/cpinterface/cpinterface.go:441 +0x58e

There was no change in anything and I am unable to debug it. I can read from BTrDb and Plotter works fine until I send any data.

Thank You.