Skip to content

Cache corruption in #4874 #5061

Closed
Closed

Description

@scw00

#4874 This pr changed the marshal buffer . And it need to cleanup the old cache entirely .

Activity

  1. added this to the 9.0.0 milestone on Feb 24, 2019
  2. SolidWallOfCode commented on Feb 24, 2019

    @SolidWallOfCode
    Member

    If this really changes the size of the cached header, then we'll need to bump the cache version # and put in logic to convert current versions to the updated version.

  3. scw00 commented on Feb 25, 2019

    @scw00
    MemberAuthor

    #5063 Is the alternate changes. And I prefer to bumping the cache version or other better ideas that can avoid cache cleaning.

    The cache is leaking on 3 scenarios :

    • Read side. Because the CacheHTTPInfoVector is a part of Doc's buffer. it should be free when doc's buffer freed (If this fragment didn't put to ram cache).
    • Write side. While we are trying to update a vector, the CacheHTTPInfoVector doesn't free the frag_offsets. Because CacheHTTPInfoVector::insert doesn't check overwriting of the alternate.
    • Ram side. The frag_table should be freed along with the buffer free.

    See #5063

  4. scw00 commented on Jul 3, 2019

    @scw00
    MemberAuthor

    Close via #5075

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions