Skip to content

[BUG] Types of fields for SnapshotCorruptedError are not exposed #871

Description

@wenkokke

Describe the bug
The public API exposes the SnapshotCorruptedError type but, probably wisely, does not expose FileCorruptedError or FileFormat.

Expected behavior
The type hierarchy is exported in its entirety.

Suggested change
Create a SnapshotCorruptedError type in Database.LSMTree that contains a SnapshotName, a FsErrorPath, and an error message, and repackage the internal SnapshotCorruptedError into this type. Likewise, create a simple SnapshotCorruptedError type in Database.LSMTree.Simple that replaces the FsErrorPath with a FilePath and repackage the full SnapshotCorruptedError into the simple SnapshotCorruptedError.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomerslsm-treeRelated to the lsm-tree librarypriority: mediumMedium priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions