Linary

Results comments of Linary

@fengjiachun 好的👌,感谢解答

@killme2008 我感觉这个最经常用法有些奇怪。 ``` if(node.isLeader()) { // 既然if已经判断自己是leader了,那这里不应该是直接node.getPeerId()吗?当然如果考虑到极端情况,if判断自己是leader后,在走到这一行这个很短的时间里又发生了leader切换,那确实应该这样用。 ...getLeaderId... } ``` 另外在我们的应用场景中因为这个不一致造成了比较严重的bug,如下: 前提:我们的leader和follower对外表现的都是支持写请求的,而具体落到follower的写请求会转发到leader处理,所以我们在写请求的方法入口处有类似这样的处理逻辑: ``` // 1. 确保leader存在,如果不存在就等待选出leader,实际是用node.getLeaderId是否为null来判断的 ensureLeaderExist() // 2. 判断自己是不是leader,用node.isLeader判断 if (!selfIfLeader()) { // 3. 转发到leader节点,用node.getLeaderId获取,然后通过rpc转发 forwardToLeader(); } ``` 而由于isLeader和getLeaderId不一致的情况,会导致:步骤1判断leader存在,步骤2判断自己不是leader,步骤3获取到leader节点(其实是自己),然后rpc转发给了自己。...

@killme2008 嗯嗯,感谢回复。 调大 disruptorBufferSize 确实能降低发生上述问题的频率,但是无法从根本上解决问题。 请问你们是否有计划解决一下该问题呢?短期没有的话我就自己先简单改改用了。

@tl890216 感谢你的反馈,这个确实是一个BUG,我们已经修复。[见提交](https://github.com/hugegraph/hugegraph/commit/d93bd1ba3b3be4b969cc5e2726d275310ef6c16a)

@tl890216 如果问题已经解决,烦请close这个issue

@rebirthwyw 这个确实是一个BUG,我们已经修复。 见[提交 HugeGraph-1386: Fixed bug that memory backend check failed when start HugeGraphServer](https://github.com/hugegraph/hugegraph/commit/02c53af134d0f9e1e0f46326d50bfea3aefcf546)。 另外,如果问题已经解决,烦请close这个issue。

@fisherinbox 你是在一个干净的项目中测试的吗?如果不是,可能是因为你项目中其他依赖也引入了其他版本的 jersey,产生依赖冲突。

感谢反馈,有空请close这个issue

@bigdata-eqxiu 感谢您的反馈,我们在[这次提交](https://github.com/hugegraph/hugegraph/commit/d93bd1ba3b3be4b969cc5e2726d275310ef6c16a)中已经移除了对lsb_release的使用,所以目前版本应该不会有这个问题。你可以再下载一个新的包试试。

This is indeed a bug, because the IndexLabel on the server may generate asynchronous tasks internally when it is created, but it does not return the taskId externally, causing the...