apache / apache/servicecomb-java-chassis

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

Đang mở
#3,021 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
1.9k
Fork
814
Merge trung bình
8 ngày 23 giờ
Pull request đã merge (30 ngày)
1

Mô tả

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

![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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java
Lĩnh vực
backend, networking
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.