Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to update block metadata after cluster restart #47

Open
xoac opened this issue Oct 1, 2022 · 0 comments
Open

Failed to update block metadata after cluster restart #47

xoac opened this issue Oct 1, 2022 · 0 comments

Comments

@xoac
Copy link
Contributor

xoac commented Oct 1, 2022

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") }) }))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant