Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

bug: whenever a DB is loaded for the first time, we are checkpointing without virtual WAL methods #765

Open
@avinassh

Description

@avinassh

to reproduce: run a fresh instance of sqld (with namespaces enabled) and create a new db by connecting via shell

the buggy code: https://github.com/libsql/sqld/blob/9b61d01/sqld/src/namespace/mod.rs#L689

relevant logs:

2023-10-12T12:55:31.238990Z DEBUG request{method=POST uri=/v2/pipeline version=HTTP/1.1}: sqld::namespace: Checkpointing before initializing bottomless
2023-10-12T12:55:31.239068Z DEBUG request{method=POST uri=/v2/pipeline version=HTTP/1.1}: sqld::replication::primary::logger: wal file doesn't exist, checkpoint not necessary
2023-10-12T12:55:31.239096Z DEBUG request{method=POST uri=/v2/pipeline version=HTTP/1.1}: sqld::namespace: Checkpointed before initializing bottomless
2023-10-12T12:55:31.239152Z DEBUG request{method=POST uri=/v2/pipeline version=HTTP/1.1}: sqld::namespace: Initializing bottomless replication

full logs: https://gist.github.com/avinassh/57d1a08a652b3085807e2cd36d3280d9

internal discussion - https://chiselstrike.slack.com/archives/C05V2DRSS3U/p1697115046418079?thread_ts=1697097311.578049&cid=C05V2DRSS3U

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions