-
Notifications
You must be signed in to change notification settings - Fork 351
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
NullPointerException on connection disposal #914
Comments
Hey @SerCeMan! Thank you for reporting that! On the root-cause... Not sure we put null somewhere, it is more likely a racing between cleanup during disposal and a stream that does self-removal from the same collection when it is terminated. So it may be that the iterator has seen an element but a collection has already been shrunken so once a next is called, the element being observed is null, hence we see NPE. |
Closes rsocketgh-914 Signed-off-by: Rossen Stoyanchev <[email protected]>
Closes rsocketgh-914 Signed-off-by: Rossen Stoyanchev <[email protected]>
A follow-up fix that extends the changes in 1ca3b99 See rsocketgh-914 Signed-off-by: Rossen Stoyanchev <[email protected]>
This should be resolved now. |
Hi @OlegDokuka, @rstoyanchev can these improvements be back-ported to rsocket 1.1.X? I am facing the same problems with the version 1.1.0 |
@Cesarla any reproducer to share? |
It happens while cleaning channel-based communication:
|
yeah. It is actually |
Is this still happening? |
Closes rsocketgh-914 Signed-off-by: Rossen Stoyanchev <[email protected]>
@Cesarla this should be fixed in 1.1.1 snapshots. |
Hey, folks!
We've noticed the following error periodically when the connections are being disposed. If I'm reading the exception correctly, it seems like the collection stores
null
at some point.Steps to Reproduce
It seems that the error isn't easily reproducible. We're only seeing very rarely, once or twice a day.
Your Environment
netty
, ...): nonejavar -version
) or Node version (node --version
)): 13uname -a
): ubuntu 20.04The text was updated successfully, but these errors were encountered: