Skip to content

Create a LogReader without an appender #625

@haydentherapper

Description

@haydentherapper

Description

For a read-only server, e.g. one that's been frozen, that also serves read traffic for /checkpoint and /tiles, a personality needs the LogReader's ReadTile, ReadEntryBundle, and ReadCheckpoint functions. To create a LogReader, you must call tessera.NewAppender, which will also start a background thread to update the checkpoint, which is not desirable if the server is read-only.

Would it be possible to add a function to create a LogReader without an appender? IntegratedSize, NextIndex, and StreamEntries would not be needed, so not sure if it'd be preferable to create an interface that's a subset of LogReader that omits these, like FrozenLogReader. If not, do you have any suggested workarounds?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions