Skip to content

fix(streams): answer a stream change's companions as the service does - #963

Merged
robinnsc merged 7 commits into
mainfrom
fix/515-gsi-update-beside-stream-change
Nov 26, 2026
Merged

robinnsc merged 7 commits into
mainfrom
fix/515-gsi-update-beside-stream-change

Conversation

@LeeroyHannigan

@LeeroyHannigan LeeroyHannigan commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Changes since the last review

  • 1318c4b merges origin/main into the branch.
  • a0c551c puts the table class back to STANDARD before each F5 row, so the rows no longer share the class a row left behind.
  • 2ca4a04 makes the NO_INDEX_THROUGHPUT xfail strict.
  • 66cbba0 names the unmeasured orders in the handler comment. No code change.
  • 5daea20 updates docs/design/07-component-streams.md to the refusals the handler gives.

What

UpdateTable with a StreamSpecification now refuses its companion changes with the service's sentences. SQLite no longer commits other changes when it refuses a stream disable.

  • An index Create or Delete beside a stream change answers "You cannot create or delete index while changing stream status". Main gave that answer for every GlobalSecondaryIndexUpdates entry.
  • An index Update that carries WarmThroughput beside a stream change answers "WarmThroughput must be the only operation in the request".
  • TableClass beside a stream change answers "TableClass modification must be the only operation in the request", before the handler reads the table. On a table with a stream, main accepted the request and applied both changes.
  • The stream state refusals ("Table has no stream to disable", "Table already has an enabled stream") still come first, also beside an index Update.
  • SQLite applies the stream change before it writes the other columns. A refused disable commits only the close of the shards that a disabled stream left open. Main also committed the request's TableClass and OnDemandThroughput.

The handler reads the table once for these checks. The refusals use the existing constants in extenddb_core::validation, and two of them replace literal copies in update_table.rs. The TableClass check is a second user of TABLE_CLASS_MUST_BE_ONLY_OPERATION. The first, validate_warm_throughput_is_only_operation, applies only when the request carries WarmThroughput, so the two checks cover different requests.

An index Update of ProvisionedThroughput beside a stream change still answers "UpdateGlobalSecondaryIndex is not yet supported", as before #515. ExtendDB does not change an index's throughput (#716).

docs/design/07-component-streams.md now lists these refusals in place of "beside any GlobalSecondaryIndexUpdates entry".

Why

Refs #716

pdf-amzn's comment on #515 (#515 (comment)) reported the first two problems. #961 holds the rest of that list.

The comment says that main accepted an index throughput Update beside a stream change. On ExtendDB, main refused it before #515 too, with "UpdateGlobalSecondaryIndex is not yet supported". So that part is the gap #716 tracks, and #515 did not cause it.

Measured on Amazon DynamoDB in us-east-1 on 11 November 2026, on a provisioned table with one GSI. Each refusal in R3 to R8 and RM went twice with the same answer. R1 and R2 went once in each of two stream cycles. R9 and R10 went once.

Row Beside the stream change DynamoDB answer
R1 index Update of ProvisionedThroughput, {StreamEnabled: false}, stream enabled 200, both changes apply
R2 index Update of ProvisionedThroughput, {StreamEnabled: true, StreamViewType: NEW_IMAGE}, stream disabled 200, both changes apply
R3 index Create You cannot create or delete index while changing stream status
R4 index Delete the same sentence, and the GSI stays
R5 TableClass, stream enabled TableClass modification must be the only operation in the request
R6 TableClass, stream already disabled the same TableClass sentence
R7 index Update of WarmThroughput, {StreamEnabled: false} WarmThroughput must be the only operation in the request
R8 the same Update, {StreamEnabled: true, StreamViewType: NEW_IMAGE} the same WarmThroughput sentence
R9 index Update of ProvisionedThroughput, {StreamEnabled: false}, stream disabled Table has no stream to disable: TableName: <table>
R10 index Update of ProvisionedThroughput, {StreamEnabled: true, StreamViewType: NEW_IMAGE}, stream enabled Table already has an enabled stream: TableName: <table>
RM TableClass beside a stream change, on a table that does not exist the TableClass sentence

R3 to R8 and RM carry the prefix One or more parameter values were invalid: . A stream change alone on the missing table answers ResourceNotFoundException.

On a table that does not exist, the service also answers the companion's sentence for the R7 and R8 shape, an index Delete, ProvisionedThroughput and DeletionProtectionEnabled. Each went twice on 25 November 2026. ExtendDB reads the table first and answers ResourceNotFoundException for those four. #1115 tracks that gap. TableClass is the one companion that both refuse before the lookup.

Not measured: the order of the stream state refusals against the index, WarmThroughput and DeletionProtection sentences on an existing table. The recorded rows put the stream state ahead of the IOPS sentence and ahead of a bare index Update only. The handler keeps the order it has for the IOPS sentence, stream state first, and its comment says so.

Merging

git merge-tree --write-tree of 5daea20: clean against origin/main (a417b2f). Against #548 (6459ee8) it conflicts in crates/engine/src/streams_tests.rs, a file this PR does not change, and main conflicts with #548 there too. Against #1126 (7d87f97) it conflicts in crates/core/src/validation/warm_throughput.rs and crates/engine/src/update_table.rs. Against #1093 (9fc1d6c) it conflicts in crates/engine/src/update_table.rs. #1126 and #1093 merge clean with main, so those two conflicts come with this PR.

Testing done

  • a_stream_change_refuses_its_companions in crates/engine/src/update_table_tests.rs is one data table: the R3, R4, R7 and R8 shapes and a Create beside an Update. R5 and R6 are the two TableClass rows of F5.
  • a_refused_disable_writes_no_other_member in crates/storage-sqlite/src/stream_lifecycle_tests.rs covers a table that never had a stream and one whose stream is disabled. TableClass and OnDemandThroughput stay unset.
  • F5 in tests/python/test_stream_disable_fold.py is one data table of R1, R2 and R4 to R10 on its own provisioned table. Each row first brings the stream to its measured state and puts the table class back to STANDARD. R1 and R2 are strict xfail on ExtendDB (UpdateTable refuses every GSI Update action, so index throughput cannot change and a table with indexes cannot switch to PROVISIONED #716). R3 is the existing test_a_stream_change_beside_an_index_create_is_refused.

Results at 5daea20:

  • cargo +1.97.0 fmt --all -- --check and both clippy commands of CI on the engine, core and SQLite crates: pass.
  • cargo test --lib: extenddb-engine 890 passed, extenddb-core 1166 passed and 1 ignored, extenddb-storage-sqlite 328 passed, 2 failed and 1 ignored. The 2 are backup_catalog::write_lock_tests::*. They fail on the test host because uid 65534 owns an ancestor directory of the backup root.
  • On a SQLite server built from the branch, the 7 files test_stream_disable*, test_warm_throughput* and test_stream_shard_ownership: 84 passed, 6 xfailed (R1, R2 and 4 rows from End GetRecords iterators after closed shard exhaustion #372). test_table_operations and test_stream_table_reuse: 31 passed.
  • Negative controls: the SQLite test fails on main's crates/storage-sqlite/src/update_table.rs. F5 fails 4 rows on main's engine handler (R5, R6, R7, R8), each on its message. With the first commit's engine handler alone, R9 and R10 fail.

Not run here: the PostgreSQL, MongoDB and Cassandra wire runs. CI runs F5 on all four backends.

Checklist

  • I have read CONTRIBUTING.md
  • All tests pass (cargo test --workspace)
  • Code is formatted (cargo fmt --check)
  • Clippy is clean (cargo clippy -- -W clippy::pedantic)
  • I have added or updated tests for new functionality
  • I have updated documentation if behavior changed
  • Breaking changes are noted below (if any)
  • If this changes the wire protocol, Storage trait, auth model, on-disk
    format, or public CLI surface, an RFC has been accepted or is linked
    below. Otherwise, an ADR captures the decision (link below).

ADR / RFC: n/a

Breaking changes

UpdateTable with TableClass beside a StreamSpecification now gets the service's refusal. Main accepted it and applied both changes.


By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache License 2.0 and I agree to the Developer Certificate of
Origin (DCO). See CONTRIBUTING.md for details.

An UpdateTable that carries a StreamSpecification answered the index
sentence for every GlobalSecondaryIndexUpdates entry and accepted
TableClass. On SQLite, a disable refused with "Table has no stream to
disable" committed the request's TableClass and OnDemandThroughput
before it answered.

Measured on Amazon DynamoDB on 2026-11-11 (us-east-1, a provisioned
table with one GSI, each refusal sent twice):

- The service accepts an index Update of ProvisionedThroughput beside
  {StreamEnabled: false}. It also accepts one beside {StreamEnabled:
  true, StreamViewType: NEW_IMAGE} on a table whose stream is
  disabled. Both changes apply.
- An index Create or Delete beside a stream change answers "You cannot
  create or delete index while changing stream status".
- An index Update that carries WarmThroughput beside a stream change
  answers "WarmThroughput must be the only operation in the request".
- TableClass beside {StreamEnabled: false} answers "TableClass
  modification must be the only operation in the request". The answer
  is the same on a table with an enabled stream and on one whose stream
  is already disabled.

The engine counts only Create and Delete entries for the index
sentence. It answers the WarmThroughput sentence for an index Update
that carries WarmThroughput. It refuses TableClass beside a stream
change before it reads the table. All three reuse the existing
constants. SQLite applies the stream change before it writes any other
column. A refused disable then commits only the close of the shards
that a disabled stream left open. OnDemandThroughput beside a stream
change is not measured and stays accepted.

ExtendDB does not change an index's ProvisionedThroughput, so the two
accepted requests answer "UpdateGlobalSecondaryIndex is not yet
supported", as they did before #515. Their wire rows are marked xfail
on ExtendDB.

Signed-off-by: Lee Hannigan <29015211+LeeroyHannigan@users.noreply.github.com>
The previous commit stopped treating an index Update without
WarmThroughput as a companion of a stream change. The handler then
skipped the table read that checks the stream state. Such a request
answered "UpdateGlobalSecondaryIndex is not yet supported". The service
refuses the stream change itself when the table cannot take it. These
are a disable on a table without an enabled stream, and an enable on a
table with one. Main answered the stream state sentence.

Measured on Amazon DynamoDB on 2026-11-11 (us-east-1, a provisioned
table with one GSI):

- R9: the table's stream is disabled. An index Update of
  ProvisionedThroughput beside {StreamEnabled: false} answers "Table
  has no stream to disable: TableName: <table>". The index keeps its
  units.
- R10: the table's stream is enabled. An index Update of
  ProvisionedThroughput beside {StreamEnabled: true, StreamViewType:
  NEW_IMAGE} answers "Table already has an enabled stream: TableName:
  <table>". The index keeps its units.

The handler now reads the table once, for a companion, for an index
Update without WarmThroughput, or for one of the earlier reasons. It
checks the stream state first, then answers the companion sentence,
then runs the existing checks. R9 and R10 are rows of the F5 data
table.

The F5 file keeps one copy of each sentence: the index sentence is one
module constant, and the TableClass and WarmThroughput sentences come
from warm_throughput_helpers. The handler comment is shorter, and the
engine data table has a row for a Create beside an Update.

Signed-off-by: Lee Hannigan <29015211+LeeroyHannigan@users.noreply.github.com>

@navareamol navareamol left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the F5 rows are not independent. They share one table and each row resets only the stream state. With main's engine and SQLite update_table.rs, 6 rows fail, not 4: index-units-no-stream-to-disable and index-units-already-enabled get the right message but fail assert 'STANDARD_INFREQUENT_ACCESS' == 'STANDARD', because the table-class row was accepted on main and left the table at STANDARD_INFREQUENT_ACCESS. Could each row also reset TableClass, or could the class rows use a table of their own? The count in the description would then match too.

The description says a_stream_change_refuses_its_companions covers R3 to R8, but the table has no TableClass row. The TableClass check sits in handle_update_table, not in stream_change_companion, so R5 and R6 are covered only by the wire rows. Could the description say R3, R4, R7 and R8, or could a handler test cover the TableClass refusal?

Optional: NO_INDEX_THROUGHPUT is a non-strict xfail, so when #716 lands R1 and R2 will pass silently. strict=True would flag the marker for removal.

A question on the new order: R9 and R10 measure the stream state refusal ahead of an index ProvisionedThroughput Update. The handler applies the same order to an index WarmThroughput Update (ExtendDB answers "Table already has an enabled stream" for a NEW_IMAGE enable beside one). Has anyone checked that order on the service?

I will approve once the F5 rows reset the table class and the description's test claims match the tests.

The F5 rows share one provisioned table, and each row brought only the
stream to its measured state. A row that main accepts leaves the
table at STANDARD_INFREQUENT_ACCESS, and every later refusal row then fails
its table class assertion. With main's engine handler, 6 rows failed: R5 to
R8 on their message, and R9 and R10 on the class the table-class row left
behind.

Each row now puts the table class back to STANDARD before it sends its
request, through the same _table_class reader the assertion uses. The
service refuses every row and the class stays STANDARD, so the reset never
runs there. With main's engine handler F5 now fails 4 rows, R5 to R8, on
their message. At this head the file passes: 23 passed, 2 xfailed.
NO_INDEX_THROUGHPUT marks R1 and R2 of F5 as expected failures while
ExtendDB does not change an index's ProvisionedThroughput (#716). Without
strict=True, pytest reports XPASS and passes once #716 lands, and the marker
stays. With strict=True that run fails and names the marker for removal.
Neither pytest.ini sets xfail_strict, so the marker carries it.
…n comment

The comment on the companion refusals listed as unmeasured only the order of
TableClass against the other sentences, and OnDemandThroughput beside a
stream change. The order of the stream state refusals against the index,
WarmThroughput and DeletionProtection sentences is unmeasured too. The
recorded rows put the stream state ahead of the IOPS sentence and ahead of a
bare index Update only.

On a table that does not exist the service answers the WarmThroughput
sentence for a stream change beside an index WarmThroughput Update. That
was measured 2026-11-25 in us-east-1, twice. It answers the IOPS sentence
there in the same way, and on an existing table the stream state refusal
still comes before the IOPS sentence. So the missing-table answer does not
settle the order on an existing table. The handler keeps the order it has
for the IOPS sentence, stream state first. No code change.
docs/design/07-component-streams.md said that the handler refuses any
GlobalSecondaryIndexUpdates entry beside a stream change with the index
sentence. The sentence now lists the refusals the handler gives. An index
Create or Delete gets the index sentence. An index Update that carries
WarmThroughput gets the WarmThroughput sentence. TableClass gets the
TableClass sentence. The service accepts an index Update of
ProvisionedThroughput beside a stream change, and ExtendDB answers that
request as it answers the Update alone (#716).
@LeeroyHannigan

Copy link
Copy Markdown
Collaborator Author
  1. Fixed in a0c551c. Each F5 row now puts the table class back to STANDARD before it sends its request, through the same reader the assertion uses. With main's engine handler the file fails R5 to R8 on their message and nothing else (4 failed, 19 passed, 2 xfailed). At 5daea20 it passes: 23 passed, 2 xfailed. The description says 4 rows again, with the reset.

  2. The description now says the engine table covers the R3, R4, R7 and R8 shapes and a Create beside an Update. R5 and R6 are the two TableClass rows of F5. I added no handler test. update_table_tests.rs has no harness that calls handle_update_table with a storage, and the wire rows pin the TableClass refusal on all four backends.

  3. Fixed in 2ca4a04: strict=True on NO_INDEX_THROUGHPUT.

  4. No. On a table that does not exist the service answers WarmThroughput must be the only operation in the request for that shape (measured 25 Nov 2026, twice). It answers the IOPS sentence there in the same way. For the IOPS sentence the stream state refusal still comes first on an existing table (the test_the_already_enabled_check_precedes_the_companion_rule row). So the missing-table answer does not settle the order. ExtendDB keeps the order it has for the IOPS sentence, stream state first. The handler comment (66cbba0) lists this order as unmeasured for the WarmThroughput, index and DeletionProtection sentences.

The branch also has main merged in (1318c4b) and the streams design doc updated to these refusals (5daea20).

@navareamol navareamol left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I approve. I reran the F5 file on SQLite: 23 passed and 2 xfailed at 5daea20, and with main's engine and SQLite update_table.rs it fails table-class, table-class-already-disabled, index-warm-disable and index-warm-enable and nothing else. Each row passes on its own and in reverse order. The strict xfail turns a passing R1 into a failure. CI ran the file on all four backends with 23 passed and 2 xfailed each.

One small point in the design doc: the paragraph that lists the companion refusals leaves out DeletionProtectionEnabled, which the handler refuses beside a stream change with "DeletionProtection modification must be the only operation in the request". Could you add it to that list?

A handler test is possible if you want one later: a context over an in-memory SqliteEngine, built as partiql/test_context.rs builds it, lets handle_update_table be called directly. I wrote one for the missing-table TableClass row and it fails on main's handler. Not needed for this PR.

Your reply says the service answers the companion sentence on a missing table for the WarmThroughput and IOPS shapes. ExtendDB answers ResourceNotFoundException there for IOPS, index WarmThroughput, index Delete and DeletionProtection, on main too. Should that go in an issue of its own?

@LeeroyHannigan
LeeroyHannigan removed this pull request from the merge queue due to a manual request Nov 25, 2026
@robinnsc
robinnsc added this pull request to the merge queue Nov 25, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 26, 2026
@robinnsc
robinnsc added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit cd89008 Nov 26, 2026
65 checks passed
@robinnsc
robinnsc deleted the fix/515-gsi-update-beside-stream-change branch November 26, 2026 02:52
robinnsc added a commit that referenced this pull request Nov 26, 2026
Moves the workspace version from 1.0.0 to 1.1.0 on every surface that
carries it: the root Cargo.toml version and its 13 exact pins, the 15
workspace entries in Cargo.lock (no third-party entry changes),
packaging/npm/package.json (the version and the five platform pins),
the four license-notice files (regenerated with cargo-about 0.9.0), and
the sample `extenddb version` and `serve` output in
docs/getting-started.md and docs/manuals/04-quickstart-setup-guide.md.

This is a minor release. Since v1.0.0, main has two features (#468,
#1009) and changes that make ExtendDB answer as DynamoDB does, which
docs/versioning.md ships in a minor release. It adds no catalog
migration (RELEASED_THROUGH stays 12, the last id), no configuration
key and no backup format version.

Upgrade manual, Behavior Changes by Release: v1.1.0 entries for #468
(AT_TIMESTAMP, and the GetShardIterator answers it changes), #486,
#503, #544, #567, #765 and #774, #588, #596, #690, #963, #1144, #1173,
#1194 and #1375, next to the existing entries for #398, #526 and
#1166. The #526 entry now gives the old TransactWriteItems mismatch
message, and the entries are in PR order. Current Status, the General
Upgrade Procedure and the Rollback Procedure cover 1.0.0 to 1.1.0: no
migrate step, the #1166 checks before a PostgreSQL upgrade, and a
rollback runs the 1.0.0 binary on the same catalog, with the two
limits the manual names (#526 tokens, and 1.0.0's catalog-check
--fix). The rollback note of the KEK-file switch says that 1.0.0
serves a switched catalog.

docs/manuals/11-deployment-guide.md: a sentence about the release
before the one that carries #398 is gone.
robinnsc added a commit that referenced this pull request Nov 27, 2026
Moves the workspace version from 1.0.0 to 1.1.0 on every surface that
carries it: the root Cargo.toml version and its 13 exact pins, the 15
workspace entries in Cargo.lock (no third-party entry changes),
packaging/npm/package.json (the version and the five platform pins),
the four license-notice files (regenerated with cargo-about 0.9.0), and
the sample `extenddb version` and `serve` output in
docs/getting-started.md and docs/manuals/04-quickstart-setup-guide.md.

This is a minor release. Since v1.0.0, main has three features (#468,
#1009, #1449) and changes that make ExtendDB answer as DynamoDB does, which
docs/versioning.md ships in a minor release. It adds no catalog
migration (RELEASED_THROUGH stays 12, the last id), no configuration
key and no backup format version.

Upgrade manual, Behavior Changes by Release: v1.1.0 entries for #468
(AT_TIMESTAMP, and the GetShardIterator answers it changes), #486,
#503, #544, #567, #765 and #774, #588, #596, #690, #963, #1144, #1173,
#1194, #1375 and #1522, next to the existing entries for #398, #526,
#1166, #1449 and #1523. The #526 entry now gives the old
TransactWriteItems mismatch message, the #1523 heading takes the
v1.1.0: prefix, and the entries are in PR order. Current Status, the General
Upgrade Procedure and the Rollback Procedure cover 1.0.0 to 1.1.0: no
migrate step, the #1166 checks before a PostgreSQL upgrade, and a
rollback runs the 1.0.0 binary on the same catalog, with the two
limits the manual names (#526 tokens, and 1.0.0's catalog-check
--fix). The rollback note of the KEK-file switch says that 1.0.0
serves a switched catalog.

docs/manuals/11-deployment-guide.md: a sentence about the release
before the one that carries #398 is gone.
robinnsc added a commit that referenced this pull request Nov 27, 2026
Moves the workspace version from 1.0.0 to 1.1.0 on every surface that
carries it: the root Cargo.toml version and its 13 exact pins, the 15
workspace entries in Cargo.lock (no third-party entry changes),
packaging/npm/package.json (the version and the five platform pins),
the four license-notice files (regenerated with cargo-about 0.9.0), and
the sample `extenddb version` and `serve` output in
docs/getting-started.md and docs/manuals/04-quickstart-setup-guide.md.

This is a minor release. Since v1.0.0, main has three features (#468,
#1009, #1449) and changes that make ExtendDB answer as DynamoDB does, which
docs/versioning.md ships in a minor release. It adds no catalog
migration (RELEASED_THROUGH stays 12, the last id), no configuration
key and no backup format version.

Upgrade manual, Behavior Changes by Release: v1.1.0 entries for #468
(AT_TIMESTAMP, and the GetShardIterator answers it changes), #486,
#503, #544, #567, #765 and #774, #588, #596, #690, #963, #1144, #1173,
#1194, #1375 and #1522, next to the existing entries for #398, #526,
#1166, #1449 and #1523. The #526 entry now gives the old
TransactWriteItems mismatch message, the #1523 heading takes the
v1.1.0: prefix, and the entries are in PR order. Current Status, the General
Upgrade Procedure and the Rollback Procedure cover 1.0.0 to 1.1.0: no
migrate step, the #1166 checks before a PostgreSQL upgrade, and a
rollback runs the 1.0.0 binary on the same catalog, with the two
limits the manual names (#526 tokens, and 1.0.0's catalog-check
--fix). The rollback note of the KEK-file switch says that 1.0.0
serves a switched catalog.

docs/manuals/11-deployment-guide.md: a sentence about the release
before the one that carries #398 is gone.

docs/troubleshooting.md: the bus error entry names 1.0.0 as the release
that has the bug, so its line carries a version-literal-ok marker.
LeeroyHannigan added a commit that referenced this pull request Nov 27, 2026
* chore(release): bump version to 1.1.0

Moves the workspace version from 1.0.0 to 1.1.0 on every surface that
carries it: the root Cargo.toml version and its 13 exact pins, the 15
workspace entries in Cargo.lock (no third-party entry changes),
packaging/npm/package.json (the version and the five platform pins),
the four license-notice files (regenerated with cargo-about 0.9.0), and
the sample `extenddb version` and `serve` output in
docs/getting-started.md and docs/manuals/04-quickstart-setup-guide.md.

This is a minor release. Since v1.0.0, main has three features (#468,
#1009, #1449) and changes that make ExtendDB answer as DynamoDB does, which
docs/versioning.md ships in a minor release. It adds no catalog
migration (RELEASED_THROUGH stays 12, the last id), no configuration
key and no backup format version.

Upgrade manual, Behavior Changes by Release: v1.1.0 entries for #468
(AT_TIMESTAMP, and the GetShardIterator answers it changes), #486,
#503, #544, #567, #765 and #774, #588, #596, #690, #963, #1144, #1173,
#1194, #1375 and #1522, next to the existing entries for #398, #526,
#1166, #1449 and #1523. The #526 entry now gives the old
TransactWriteItems mismatch message, the #1523 heading takes the
v1.1.0: prefix, and the entries are in PR order. Current Status, the General
Upgrade Procedure and the Rollback Procedure cover 1.0.0 to 1.1.0: no
migrate step, the #1166 checks before a PostgreSQL upgrade, and a
rollback runs the 1.0.0 binary on the same catalog, with the two
limits the manual names (#526 tokens, and 1.0.0's catalog-check
--fix). The rollback note of the KEK-file switch says that 1.0.0
serves a switched catalog.

docs/manuals/11-deployment-guide.md: a sentence about the release
before the one that carries #398 is gone.

docs/troubleshooting.md: the bus error entry names 1.0.0 as the release
that has the bug, so its line carries a version-literal-ok marker.

* docs(upgrade): add the v1.1.0 entry of #1290, put #1349's in order

#1290 merged after this branch was rebased. It changes the answer to a
request with no Authorization header, so it gets a v1.1.0 entry. The
merge of main put the #1349 entry after the #1523 entry. It moves to
the place of its number, beside the new #1290 entry.

---------

Co-authored-by: Lee Hannigan <29015211+LeeroyHannigan@users.noreply.github.com>
annguy3n added a commit to annguy3n/extenddb that referenced this pull request Nov 30, 2026
Resolve the Cargo.toml and Cargo.lock merge conflicts with main (v1.1.0) and
adapt the Cloud Bigtable storage backend to upstream changes:

- Align workspace Cargo.toml and Cargo.lock with ExtendDB v1.1.0 (ExtendDB#1514), MSRV
  1.94.0 and sqlx 0.9.1 (ExtendDB#1166), and extenddb-server default-features = false
  (ExtendDB#1449), bumping extenddb-storage-bigtable to =1.1.0.
- Adapt AuthorizationStore::fetch_session_data (ExtendDB#1523) to look up role session
  policy, tags, and RFC 3339 created_at in O(1) by access_key_id via
  iam_session_ak:<access_key_id> -> iam_session:<session_token> without
  re-checking session expiry, with symmetric 4 KiB row-key and non-empty token
  guards across fetch_session_data and lookup_credential.
- Decide StreamSpecification transitions in BigtableEngine::update_table ahead
  of companion table fields and GSI updates (ExtendDB#963) so a refused disable/enable
  writes no other table member while still closing any open shards left behind
  by a prior disable.
- Update docs/bigtable-setup.md for Rust 1.94.0 and the exact v1.1.0 extenddb
  version output.
- Add unit and live cbtemulator integration tests covering
  session_data_conformance::run, expired/deleted/oversized session-data and
  credential lookups, write_bootstrap_rows admin environment-variable
  combinations and idempotent re-runs (ExtendDB#1349), ClientRequestToken NUL/backslash/
  UTF-8 escaped stored tokens (ExtendDB#1375), and refused stream disable/enable
  preceding companion edits (ExtendDB#963).
annguy3n added a commit to annguy3n/extenddb that referenced this pull request Nov 30, 2026
Merge upstream main (ExtendDB v1.1.0) into rfc/bigtable-backend and
reverse-sync docs/rfcs/0000-bigtable-backend.md with the v1.1.0 trait
surface and conformance coverage:

- Update ExtendDB binary version literals to v1.1.0 (ExtendDB#1514).
- Document O(1) access-key-indexed AuthorizationStore::fetch_session_data
  (including expired sessions), symmetric 4 KiB key-length bounds, and
  session_data_conformance::run (ExtendDB#1523).
- Document escaped ClientRequestToken stored tokens (ExtendDB#1375), pre-companion
  StreamSpecification refusal in TableEngine::update_table (ExtendDB#963), default
  SettingsStore::get_setting_bounded (ExtendDB#1449), and write_bootstrap_rows admin
  environment-variable handling (ExtendDB#1349).
LeeroyHannigan added a commit that referenced this pull request Dec 3, 2026
One hunk of crates/engine/src/update_table.rs conflicted. Main added the
companion.is_some() term of #963 to the condition that reads the table
before the backend call. This branch replaced switches_to_on_demand
with changes_capacity in the same condition. The merge keeps both terms.
changes_capacity includes every switch to PAY_PER_REQUEST.

Main moved to sqlx 0.9.1 in #1166, and sqlx 0.9.1 refuses a query string
that the code builds at run time. The SQLite test helper table_with builds
its UPDATE with format!, so the merge wraps that string in
sqlx::AssertSqlSafe.
LeeroyHannigan added a commit that referenced this pull request Dec 3, 2026
The merged branch holds main at c057660 and the #1093 change that
decides the UPDATING window in each backend write. Six files conflicted.

- crates/engine/src/delete_table.rs: main's #1411 builds the answer with
  deleting_description, and this branch clears LastIncreaseDateTime after
  prepare_for_response. The merge clears the member on the description
  that deleting_description returns.
- crates/storage-sqlite/src/table_helpers.rs: the status now goes through
  parse_transition_at of #1093, with the one clock read of this branch.
  Both new tests stay.
- crates/storage-sqlite/src/update_table.rs and
  crates/storage-postgres/src/update_table.rs: the locked SELECT reads the
  columns of both sides. The NoOp check and the stored units of
  StoredCapacity come from the TableThroughputRecord that this branch
  parses. The window refusal comes first, then updating_until, which
  now opens only when enters_updating is true for the stored values. On
  SQLite, main's stream decision of #963 follows them.
- crates/storage-cassandra/src/update_table.rs: the stored billing mode
  has one name, stored_bm, and updating_until follows the same rule.
- crates/storage-mongodb/src/table_engine.rs: the imports of both sides,
  and updating_until follows the same rule.

The engine test that #1093 adds calls provisioned_5, which this branch
renamed. The merge calls provisioned(5, 5).
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.

3 participants