Skip to content

Bookies come up without a cookie in metadata store #2305

@Ghatage

Description

@Ghatage

BUG REPORT

Describe the bug

Bookies are allowed tot boot up even if they don't have a cookie in the metadata store.

To Reproduce

Steps to reproduce the behavior in jUnit:

  1. Boot up a bookie
  2. Delete it's cookie from metadata store
  3. Restart bookie
  4. Bookie comes back up even without a cookie
  5. This is a problem because any following operations on cookies will result in InvalidCookieException

Expected behavior

If for some reason, the bookie does not have a cookie in metadata store it should not be allowed to come up because the cookies are out of sync.

Additional context

See slack conversation here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions