Skip to content

Fix: archiveDB transaction breeder creation#38

Merged
cherusk merged 1 commit intomainfrom
guard_archive_db_ddl
Jan 26, 2026
Merged

Fix: archiveDB transaction breeder creation#38
cherusk merged 1 commit intomainfrom
guard_archive_db_ddl

Conversation

@cherusk
Copy link
Member

@cherusk cherusk commented Jan 26, 2026

  • Poll breeder_state table to ensure transaction is fully committed before Optuna init
  • Add retry logic with exponential backoff for Optuna schema initialization
  • Handle YugabyteDB-specific errors (SerializationFailure, timeout, InternalError)
  • Prevents "database is being accessed by other users" errors caused by concurrent DDL operations

YugabyteDB requires additional time for transaction propagation compared to PostgreSQL,
especially for DDL operations. This fix ensures Optuna doesn't start creating tables until
the breeder_state table is fully committed and accessible.

  - Poll breeder_state table to ensure transaction is fully committed before Optuna init
  - Add retry logic with exponential backoff for Optuna schema initialization
  - Handle YugabyteDB-specific errors (SerializationFailure, timeout, InternalError)
  - Prevents "database is being accessed by other users" errors caused by concurrent DDL operations

  YugabyteDB requires additional time for transaction propagation compared to PostgreSQL,
  especially for DDL operations. This fix ensures Optuna doesn't start creating tables until
  the breeder_state table is fully committed and accessible.
@cherusk cherusk merged commit 896e6dc into main Jan 26, 2026
2 checks passed
@cherusk cherusk deleted the guard_archive_db_ddl branch January 26, 2026 07:51
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

Successfully merging this pull request may close these issues.

1 participant