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

Fix mismatching BlockContents::has_trailer #12955

Closed
wants to merge 12 commits into from

Conversation

mm304321141
Copy link
Contributor

@mm304321141 mm304321141 commented Aug 22, 2024

BlockFetcher::ReadBlockContents()
|-- ReadBlock()
|-- UncompressSerializedBlock()
|-- InsertUncompressedBlockToPersistentCacheIfNeeded()

for this code path, we insert a BlockContent into persistent cache .
the BlockContent is from UncompressSerializedBlock, it has no trailer
but at next call to BlockFetcher::ReadBlockContents()
we will get the BlockContent from TryGetUncompressBlockFromPersistentCache()
and it set the BlockContent::has_trailer to true ???

@mm304321141 mm304321141 changed the title Fix miss matching BlockContents::has_trailer Fix mismatching BlockContents::has_trailer Aug 22, 2024
@hx235
Copy link
Contributor

hx235 commented Nov 21, 2024

The PR summary is not clear to me what issue this PR is trying to solve. Can you provide a UT to demonstrate the expected behavior and existing behavior?

@mm304321141
Copy link
Contributor Author

The PR summary is not clear to me what issue this PR is trying to solve. Can you provide a UT to demonstrate the expected behavior and existing behavior?

Sorry I don't have time to build a case, please treat this PR as an issue

It's not very important, just core dump when hits the problem on debug build.

The code that may have problems has been pointed out, you should be able to deduce what the problem is

@mm304321141 mm304321141 closed this Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants