{"issue":{"state":"closed","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/ba559bc674076f4549522ae92864bdf3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"ba559bc674076f4549522ae92864bdf3","url":"https://api.github.com/users/mtrencseni","login":"mtrencseni","id":229735},"milestone":null,"assignee":null,"labels":[{"name":"mtrencseni","color":"e102d8","url":"https://api.github.com/repos/scalien/scaliendb/labels/mtrencseni"}],"updated_at":"2011-11-04T14:56:51Z","comments":0,"closed_at":"2011-11-04T14:56:51Z","url":"https://api.github.com/repos/scalien/scaliendb/issues/317","body":"./scaliendb(_ZN17StorageLogSegment12AppendDeleteEtmR10ReadBuffer+0x44)[0x48ca74]\r\n./scaliendb(_ZN18StorageEnvironment6DeleteEtm10ReadBuffer+0x10b)[0x4823cb]\r\n./scaliendb(_ZN20ShardDatabaseManager14ExecuteMessageEmmmR12ShardMessage+0x3fe)[0x45ee4e]\r\n./scaliendb(_ZN20ShardQuorumProcessor14ExecuteMessageEmmP12ShardMessageb+0x150)[0x46b230]\r\n./scaliendb(_ZN20ShardQuorumProcessor14OnResumeAppendEv+0x18d)[0x46b76d]\r\n./scaliendb(_ZN13ReplicatedLog18ProcessLearnChosenEmm+0x100)[0x477a10]\r\n./scaliendb(_ZN18ShardQuorumContext14OnPaxosMessageE10ReadBuffer+0x6b)[0x46753b]\r\n./scaliendb(_ZN18ShardQuorumContext9OnMessageEm10ReadBuffer+0xf6)[0x467646]\r\n./scaliendb(_ZN16ContextTransport15OnQuorumMessageEmR10ReadBuffer+0x77)[0x43b097]\r\n./scaliendb(_ZN16ContextTransport9OnMessageEm10ReadBuffer+0xde)[0x43bcde]\r\n./scaliendb(_ZN17ClusterConnection9OnMessageER10ReadBuffer+0x59)[0x46f419]\r\n./scaliendb(_ZN17MessageConnection6OnReadEv+0x198)[0x471668]\r\n./scaliendb[0x49d6c3]\r\n./scaliendb(_ZN11IOProcessor4PollEi+0x24e)[0x49da3e]\r\n./scaliendb(_ZN9EventLoop3RunEv+0x1e)[0x49914e]\r\n./scaliendb(_Z14RunApplicationv+0x95)[0x4a0b35]\r\n./scaliendb(_ZN7Service4MainEiPPcPFvvE+0x6)[0x49ef56]\r\n./scaliendb(main+0xa)[0x4a08ea]\r\n/lib/libc.so.6(__libc_start_main+0xfd)[0x7ff43b229c4d]\r\n./scaliendb[0x436e39]\r\nscaliendb: src/Framework/Storage/StorageLogSegment.cpp:150: int32_t StorageLogSegment::AppendDelete(uint16_t, uint64_t, ReadBuffer&): Assertion `key.GetLength() > 0' failed.\r\nAborted\r\n\r\nA batch mód SINGLE volt. A Java program ilyesmi volt:\r\n\r\nimport com.scalien.scaliendb.Client;\r\nimport com.scalien.scaliendb.Database;\r\nimport com.scalien.scaliendb.KeyValue;\r\nimport com.scalien.scaliendb.Query;\r\nimport com.scalien.scaliendb.StringKeyValueIterator;\r\nimport com.scalien.scaliendb.Table;\r\n\r\npublic class ListTable {\r\n\r\n    public static void main(String[] args) throws Exception {\r\n        Client c = new Client(\"192.168.1.200:7080\");\r\n        c.setBatchMode(Client.BATCH_SINGLE);\r\n        Database d = c.getDatabase(\"naxos\");\r\n        Table t = d.getTable(\"index_symbol\");\r\n        t.set(\"masik\", \"23\");\r\n        t.delete(\"masik\");\r\n        t.delete(\"\");\r\n        Query q = t.createQuery();\r\n        q.setPrefix(\"\");\r\n        q.setCount(1000);\r\n        System.out.println(\"NOW\");\r\n        for (KeyValue<String, String> kv: q.getStringKeyValueIterator()) {\r\n            System.out.format(\"%s = %s\\n\", kv.getKey(), kv.getValue());\r\n        }\r\n    }\r\n}","html_url":"https://github.com/scalien/scaliendb/issues/317","title":"Empty key causes ASSERT","number":317,"id":2124111,"created_at":"2011-11-02T17:34:21Z"},"action":"closed"}