Skip to content

pg_autoctl show state --local should be read-only #1154

Description

@tboevil

pg_autoctl show state --local will be executed keeper_init,then it will delete pg_autoctl.pg. external components calls to this command may cause conflicts with the keeper.

T0+0.13s  openat(O_CREAT) pg_autoctl.pg by `pg_autoctl: node active`
T0+0.18s  unlink pg_autoctl.pg by `pg_autoctl show state --json --local`
T0+9.4s   keeper write again
T0+10.2s  unlink again
...       30s unlink retry(ENOENT after first attempt)
T0+30s    keeper timeout → pg_basebackup

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