Skip to content

Failed to update block metadata after cluster restart #47

@xoac

Description

@xoac

I think that there should be ON CONFLICT that make UPSERT instead of INSERT. To make sure that all block are overwriten correctly.

Failed to update block metadata: (Error updating account. Error message: (Failed to persist the update of block metadata to the PostgreSQL database. Error: Error { kind: Db, cause: Some(DbError { severity: "ERROR", parsed_severity: Some(Error), code: SqlState(E23505), message: "duplicate key value violates unique constraint \"block_pkey\"", detail: Some("Key (slot)=(153139229) already exists."), hint: None, position: None, where_: None, schema: Some("public"), table: Some("block"), column: None, datatype: None, constraint: Some("block_pkey"), file: Some("nbtinsert.c"), line: Some(663), routine: Some("_bt_check_unique") }) }))

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