iohao / ioGame

无锁异步化、事件驱动架构设计的 java netty 网络编程框架; 轻量级,无需依赖任何第三方中间件或数据库就能支持集群、分布式; 适用于网络游戏服务器、物联网、内部系统及各种需要长连接的场景; 通过 ioGame 你可以很容易的搭建出一个集群无中心节点、集群自动化、分布式的网络服务器;FXGL、Unity、UE、Cocos Creator、Godot、Netty、Protobuf、webSocket、tcp、socket;java Netty 游戏服务器框架;

Home Page:http://game.iohao.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

偶现BrokerClientType为空

523544512 opened this issue · comments

你的问题 | 使用场景

描述你遇到的问题,或使用场景(询问框架能否满足此类需求)

会出现在
BalancedManager 的 remove()方法中

BrokerClientType brokerClientType = brokerClientProxy.getBrokerClientType();
获取brokerClientType 的值为空

b4ac6e50846652bd3fc9a2fcf3edbcbe
f642b4aec1c94c5d9ad68cc91259df69

请问brokerClientType 会报空怎么理解?

复现步骤

描述复现步骤,并提供复现 demo
运行一段时间 会发现这个报空

版本

  • ioGame version: 21.4

看下日志,该逻辑服是否已经触发了 ConnectionCloseEventBrokerProcessor

是触发了

请问触发了ConnectionCloseEventBrokerProcessor 什么情况下 brokerClientType会为空 遇到这情况怎么处理

少做了一个 null 判断,等下版本修复吧。目前来看不影响使用,只是重复触发了。

好的 感谢