Skip to content

Bookie GC doesn't clean up overreplicated ledgers from entry logs #4632

Closed

Description

@rdhabalia

Motivation

  • Sometimes due to overreplication, bookie contains ledgers which are not owned by that bookie anymore and that bookie is not part of the ensemble-list of those ledgers. In this case, GC finds out those overreplicated ledgers and
  • deletes their index from dbStorage (rocksDB) and
  • tries to delete them from entrylog files.

However, bookie doesn't delete them from entry-log files due to change made in #870 where bookie avoids deleting ledger if znode of that ledger exists.

Because of that bookie ends up storing large number entrylog files with ledgers which are owned by different bookies. It also cause OOM when GC tries to deal with large number of entry log files.

Fix

  1. OOM should be addressed by: 1949 or 1938
  2. And clean up overreplicated ledgers which are owned by different bookies should be fixed by this commit
    I will create a PR with this fix.

Activity

  1. added
    type/bug
    on Jun 28, 2019
  2. self-assigned this
    on Jun 28, 2019
  3. rdhabalia commented on Jun 28, 2019

    @rdhabalia
    ContributorAuthor

    @sijie I addressed all comments under: 1949

    and also created PR to fix this issue: apache/bookkeeper#2119

  4. sijie commented on Jul 6, 2020

    @sijie
    Member

    The feature has been implemented in BookKeeper apache/bookkeeper#2119

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

Metadata

Metadata

Assignees

Labels

type/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions