apache / apache/servicecomb-java-chassis

关于invocationContext对象 2.5.0 在多网卡下的空指针异常

Open
#3,021 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.9k
Forks
814
Avg merge
8d 23h
Merged PRs (30d)
1

Description

目前发现一个这样的问题,配置如下图

![image](https://user-images.githubusercontent.com/60613511/171087894-5a2c48f8-2572-4b04-a8ab-c540e4ffde5e.png)

出现问题的环境如下,一台MAC电脑上有两个网卡,一个网卡是192.168.3.188,另一个是3.133.通过ifconfig中只能看到3.188但是对于注册中心中去绑定ip的时候使用了3.133。我尝试使用java获取ip地址的方式,确实获取到了3.133这张网卡。这看起来可能是微服务注册绑定ip有优先级的顺序,但是使用ContextUtils.getInvoncationContext的数据均是空。正常的电脑均没有这个问题。@liubao

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.