Skip to content

yield checksum every N duration #426

@morgo

Description

@morgo

To start a checksum, spirit acquires a metadata lock (FLUSH TABLES WITH READ LOCK) and then starts repeatable read transactions for the N threads that are required to checksum. This can lead to long HLL values if the checksum process takes a long time.

Historically, the checksum was non-resumable, but this has long been fixed. Checksums are checkpointed, and so it's possible to resume progress.

This is a feature request to basically yield the checksum every N duration (lets start with a default of 24 hours). The downside of yielding the checksum is it requires the metadata lock to be acquired again, which is not ideal for some systems. In practice however, we will likely want to lower that default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions