Skip to content

Commit da170fa

Browse files
TheSentinel454Elrondclaude
committed
docs: number the single-table guard drop 0095
Rebased off #9610 onto main, which ends at 0094, so the drop is 0095. A build between #9363 and #9615 is not a valid 0094 stop, so the shared stop must also satisfy 0094's rule, not only come before it. Co-authored-by: Elrond <28d6302a099e5225b02c4155ac4236e4912603df2ab08dbfc2f4fef08ce598c8@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Luke Tornquist <tornquist@squareup.com>
1 parent 8fe1439 commit da170fa

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

‎crates/buzz-db/src/runtime/migration.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4014,7 +4014,7 @@ mod postgres_tests {
40144014
.fetch_one(&pool)
40154015
.await
40164016
.expect("read retired guard");
4017-
// 0096 retired the tombstone trigger.
4017+
// 0095 retired the tombstone trigger.
40184018
assert!(!tombstone);
40194019
store
40204020
.validate_serving_catalog()

‎crates/buzz-db/src/store/deletion.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4804,7 +4804,7 @@ pub(crate) mod postgres_tests {
48044804
.fetch_one(&db.pool)
48054805
.await
48064806
.expect("lookup retired functions and guard");
4807-
// 0094 retired the functions; 0096 retired the tombstone trigger.
4807+
// 0094 retired the functions; 0095 retired the tombstone trigger.
48084808
assert_eq!(retired, (false, false, false));
48094809
}
48104810

‎docs/trigger-retirement-deployment.md‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ search fails with `42883 profile_name_fields(text) does not exist`.
103103
`0094` takes no table locks. It needs no cleanup, and a rollback to a stop
104104
build needs auto-migration off, as above.
105105

106-
## Single-table guards (`0096`)
106+
## Single-table guards (`0095`)
107107

108-
`0096_drop_single_table_guards.sql` drops five single-table guard triggers and
108+
`0095_drop_single_table_guards.sql` drops five single-table guard triggers and
109109
their functions. The application writers and the catalog expand from
110110
[#8320](https://github.com/block/buzz/pull/8320) now own each rule:
111111

@@ -118,25 +118,25 @@ their functions. The application writers and the catalog expand from
118118
| `community_deletion_manifest_keys` | `community_deletion_manifest_keys_guard` / `protect_community_deletion_manifest_keys()` | chunk writes stop at freeze and `deleted_at` is one-way |
119119

120120
**A relay build at or after commit `ec778bff` (the merge of
121-
[#8320](https://github.com/block/buzz/pull/8320)) and before `0096` is a
121+
[#8320](https://github.com/block/buzz/pull/8320)) and before `0095` is a
122122
required stop.** No tagged relay release contains it, so a deployment on a
123123
tagged release must move to a stop build first. For a deployment that has not
124124
yet passed `0094`, this supersedes the `0094` stop: `ec778bff` is an ancestor
125-
of the `0094` merge, so one build at or after `ec778bff` and before `0094`
126-
satisfies both, while a build between `279a31da` and `ec778bff` satisfies only
127-
`0094`'s. Follow the same procedure as above.
125+
of the `0094` merge, so one build at or after `ec778bff` that is also a valid
126+
`0094` stop satisfies both, while a build between `279a31da` and `ec778bff`
127+
satisfies only `0094`'s. Follow the same procedure as above.
128128

129129
An older relay requires the tombstone trigger both at startup and on every
130-
readiness check. Once `0096` has run, it fails both with
130+
readiness check. Once `0095` has run, it fails both with
131131
`community tombstone trigger is missing`: serving pods go not ready and a
132132
restarted pod does not start, with auto-migration on or off. Its writers also
133133
do not enforce the five rules above.
134134

135-
`0096` takes `ACCESS EXCLUSIVE` on those five tables in one transaction, under
135+
`0095` takes `ACCESS EXCLUSIVE` on those five tables in one transaction, under
136136
a 5s `lock_timeout` that bounds each lock acquisition. Reads and writes on
137137
`channels` can queue while it acquires the remaining locks. A lock timeout
138138
rolls the whole migration back, and a retry is clean.
139139

140140
Roll back only to a build at or after `ec778bff`, with auto-migration off, as
141141
in [Rollback](#rollback). A build below `ec778bff` does not start after
142-
`0096`.
142+
`0095`.

0 commit comments

Comments
 (0)