-
Notifications
You must be signed in to change notification settings - Fork 370
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage controller: make direct tenant creation more robust (#7247)
## Problem - Creations were not idempotent (unique key violation) - Creations waited for reconciliation, which control plane blocks while an operation is in flight ## Summary of changes - Handle unique key constraint violation as an OK situation: if we're creating the same tenant ID and shard count, it's reasonable to assume this is a duplicate creation. - Make the wait for reconcile during creation tolerate failures: this is similar to location_conf, where the cloud control plane blocks our notification calls until it is done with calling into our API (in future this constraint is expected to relax as the cloud control plane learns to run multiple operations concurrently for a tenant)
- Loading branch information
Showing
3 changed files
with
33 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b3bb1d1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2810 tests run: 2655 passed, 2 failed, 153 skipped (full report)
Failures on Postgres 14
test_pgbench_intensive_init_workload[neon_off-github-actions-selfhosted-1000]
: releasetest_random_writes[neon-github-actions-selfhosted]
: releaseFlaky tests (1)
Postgres 16
test_vm_bit_clear_on_heap_lock
: debugCode coverage* (full report)
functions
:28.2% (6298 of 22349 functions)
lines
:47.0% (44244 of 94196 lines)
* collected from Rust tests only
b3bb1d1 at 2024-03-26T18:01:23.730Z :recycle: