CHECKPOINT errors during concurrent MERGE and INSERT writes #483
Unanswered
dmcfarland
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm encountering transaction conflicts and duplicate key errors when trying to run CHECKPOINT on a Ducklake instance that is under a continuous write load from two separate processes.
Environment
DuckDB Version: 1.4.0
Storage: S3
Catalog Database: Postgres
Scenario
I have two independent, long-running processes:
Process 1 (Upserts): Continuously uses the MERGE INTO statement to update existing rows or insert new ones.
Process 2 (Appends): Continuously uses the INSERT INTO statement to append new rows.
While these two processes are running, I attempt to run CHECKPOINT from a third separate connection.
Problem
When I execute the CHECKPOINT command, the operation fails with one of two errors.
Initially, I received a duplicate key violation on an internal metadata table:
After increasing the retry count as suggested (SET ducklake_max_retry_count = 100;), I then encountered a transaction conflict error:
Questions
Beta Was this translation helpful? Give feedback.
All reactions