apache / apache/servicecomb-java-chassis
关于invocationContext对象 2.5.0 在多网卡下的空指针异常
- 主要语言
- Java
- 星标
- 1.9k
- 派生
- 814
- 平均合并
- 8 天 23 小时
- 30 天内合并 PR
- 1
描述
目前发现一个这样的问题,配置如下图

出现问题的环境如下,一台MAC电脑上有两个网卡,一个网卡是192.168.3.188,另一个是3.133.通过ifconfig中只能看到3.188但是对于注册中心中去绑定ip的时候使用了3.133。我尝试使用java获取ip地址的方式,确实获取到了3.133这张网卡。这看起来可能是微服务注册绑定ip有优先级的顺序,但是使用ContextUtils.getInvoncationContext的数据均是空。正常的电脑均没有这个问题。@liubao
贡献指南
这个仓库没有索引到贡献指南
调研方向
Start with ContextUtils.getInvoncationContext and trace the service-registration IP-binding path described in the report. Reproduce the null context on the 2.5.0 setup with two network interfaces, then compare it with a normal single-interface environment. Done means the context is populated and the registration address is handled correctly in the reported scenario.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- backend, networking
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100