-
Notifications
You must be signed in to change notification settings - Fork 570
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
NullReferenceException when using AsyncPool #784
Comments
Maybe the same problem here when I upgraded to the latest version that error appears in the Upsert in concurrent calls. After reverting to the previous version, error disappeared. |
Worth mentioning I've had this issue happen in 2.2.0 & 2.3.0 versions. |
Can you summarize in detail what's the exact issue in the latest version. Where is the exception, what's the call stack, have your tried any fixes yourself etc. For sync, you can check the code to see if there is a good reason. I think it's because Try might fail. |
Reproduction:
Exception:
The issue happens in v2.2.0 and v2.3.0 but not in v.2.1.0 |
Fixed in #785 |
I'm using FasterWrapper as suggested by #780 (comment)
But when running the following code, which checkpoints from multiple threads, I'm receving a
NullReferenceException
atvar status = session.Upsert(key, value);
Can you please explain why?
I've also noticed in the synchronous variation of methods like
Upsert
inFasterWrapper
,_sessionPool.GetAsync().GetAwaiter().GetResult()
is being used instead of the synchronous_sessionPool.Get()
, is there reason for that?The text was updated successfully, but these errors were encountered: