Skip to content

The registry writes an entry without its id over one it read as truncated #570

Closed

Description

@7schmiede

What happens

read_raw in crates/devstack-daemon/src/registry.rs turns a registry entry that is still truncated after its retries (EOF, Unread::Parse) or that is JSON but no object into Ok(None). change() then writes back only the fields it sets ({claims} from set_claims_in), which its doc comment says must not happen: the entry loses id and name, drops out of list(), and its port claims no longer count, so another stack's lane can be numbered onto them (#535). The Ok(Some(_)) case is not logged although the comment says it is.

Expected

An entry that cannot be read as an object is an error for change(): it writes nothing over it (as #545 did for read errors).

Found in a code review before 0.49.4; not reproduced.

Activity

  1. added
    bug
    on Nov 18, 2026
  2. self-assigned this
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions