titan core 2.0 bug : com.esotericsoftware.kryo.KryoException: Buffer too small: capacity: 2, required: 8

穿精又带淫゛_ 提交于 2019-12-25 03:43:11

问题


I have a titan graph setup using following versions of software.

Cassandra version : 2.0.6

Titan version : 0.4.2

5 cassandra server with replication factor 3.

Recently, all of sudden, we have started getting following error intermittently.

com.esotericsoftware.kryo.KryoException: Buffer too small: capacity: 2, required: 8

I searched net and found that there is a bug filed relating to same error. Bug is pertaining to kryo API. https://code.google.com/p/kryo/issues/detail?id=124

Fix of above bug is not incorporated in titan-0.4.2 version.

On cassandra server we have not run repair database for many days (6 months). Can it be the issue with inconsistent data on cassandra server?

Can you please suggest the reason for this bug and how to approach solving it?


回答1:


Judging from this issue (which discusses Faunus, but is likely very related), i'm not so sure that there is a solution:

https://github.com/thinkaurelius/titan/issues/809

According to the issue, it looks like the 0.4.x solution was to change the hardcoded limit and recompile:

https://github.com/thinkaurelius/titan/blob/0.4.4/titan-core/src/main/java/com/thinkaurelius/titan/graphdb/database/serialize/kryo/KryoSerializer.java#L37



来源:https://stackoverflow.com/questions/29629124/titan-core-2-0-bug-com-esotericsoftware-kryo-kryoexception-buffer-too-small

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!