Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nacos server 端出现NPE #12635

Closed
dankoCao opened this issue Sep 10, 2024 · 6 comments
Closed

Nacos server 端出现NPE #12635

dankoCao opened this issue Sep 10, 2024 · 6 comments

Comments

@dankoCao
Copy link

当前版本 2.1.0-BETA, 在我们生产环境,偶尔出现了NPE的错误,最近变的频繁起来,一天大概10来条,错误信息如下、

image

业务侧报错信息如下:

2024-09-10 02:05:45.973 ERROR [com.alibaba.nacos.client.Worker:c.a.n.c.r.client] Send request fail, request=ConfigBatchListenRequest{headers={}, requestId='null'}, retryTimes=0,errorMessage=null

我在issues列表中查找到了类似的问题:#9733 , 表象和我们的类似,但是我又看了他提交的修复,#9798 , 这个修复改的是StringPool中的第58行,我们上面的报错是在第52行,和我们的不一样,这个问题的根因是什么,是否有彻底修复

@XiaZhouxx
Copy link
Contributor

你要看修复这个之后的发布版本是多少, 我看合并记录至少都是在2.2.1+

@dankoCao
Copy link
Author

#9733 这个问题是在2.2.1版本中修复的,但是我们这个错误感觉和之前的不一样,从错误信息来看是StringPool 第52行抛了NPE, 已修复的问题是在第58行加了null判断, 我现在有点迷惑,这感觉不是同一个问题

@XiaZhouxx
Copy link
Contributor

看了一下52行确实也可能导致NPE, 我看2.3.0+ 更新修复了这里的实现
image

@XiaZhouxx
Copy link
Contributor

看了一下52行确实也可能导致NPE, 我看2.3.0+ 更新修复了这里的实现 image

看了下这里的是2.1.1就修复了的

@dankoCao
Copy link
Author

下了2.1.1版本,看着确实是修复了
image

我还有点好奇,什么场景下会命中这个bug

@dankoCao
Copy link
Author

看了2.1.1 发布版本报告,问题见:#8153

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants