Skip to content

Panic with PrimaryKey is not set in update #2615

@AaronKutch

Description

@AaronKutch

There was a "PrimaryKey is not set" panic happening somewhere, and without a full backtrace environment it was hard to figure out where this was coming from. This took quite a while longer to find out why, as we expected that somehow the schema was borked based on other reports of what could cause this. Panics mess with logging machinery by truncating important output before it is shown. There was an edge case where an entry update could be called before an initial store actually succeeded, and apparently it can lead to the panic in

ActiveValue::NotSet => panic!("PrimaryKey is not set"),

Edit: no, the issue was actually some freaky state issue, but I think the points still hold

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