Skip to content

CLI: setupWitness and QueryEnd double-open same Reger LMDB path in same process -- fails on LMDB 2.x #1357

@ryan-hansen

Description

@ryan-hansen
  • indirecting.setupWitness creates a Reger for the witness hab, then instantiates QueryEnd
  • QueryEnd.init allocates another Reger with the same name/path

LMDB only allows one open environment per path per process. The older bindings didn’t fully enforce this, but LMDB 2.x with current py-lmdb raises lmdb.Error: The environment '…' is already open in this process, so kli witness demo and any other path using setupWitness will crash at startup.

This issue is not specific to shell scripts; it will happen in any environment using setupwitness with lmdb 2

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