-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Fix bug in MemorySnapshot #3133
Conversation
@Jim8y Any idea about how to fix |
if (writeBatch.TryGetValue(key, out var value)) | ||
{ | ||
return value; | ||
} | ||
|
||
immutableData.TryGetValue(key, out value); | ||
return value?[..]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should return null
? If not then change writeBatch
to do the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it returns null when it's not found
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you see the difference? In the returns?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we creating a new pointer?
It seems that |
They use a bloom filter. Our memory store does not. |
Description
Snapshot data is not taken into account during memory store reading
Type of change