Skip to content

docs: fix stale defaults and duplicate headings outside install pages - #1443

Merged
LeeroyHannigan merged 1 commit into
mainfrom
eliseong-docs-stale-defaults-2026-11-24
Dec 4, 2026
Merged

LeeroyHannigan merged 1 commit into
mainfrom
eliseong-docs-stale-defaults-2026-11-24

Conversation

@eliseong

Copy link
Copy Markdown
Collaborator

What

Five documentation corrections on pages outside the install set, each verified against the code:

  1. differences-from-dynamodb.md: control_plane_delay_seconds default is 0.25, not 5, in both the prose row and the settings table. Also corrected the same stale 5 seconds in 03-usage-guide.md.
  2. 05-admin-guide.md: the second Health Check heading is renamed Health Check Endpoint, so its anchor is unique. The first heading keeps #health-check, which the link under Server Lifecycle targets.
  3. 01-architecture-guide.md: the second Authentication heading is renamed SigV4 Authentication, so its anchor is unique. Nothing links to the old anchors.
  4. 03-usage-guide.md: the get-shard-iterator example uses "<shard-id>", not shard-0. A server shard id has the form shardId-<table-id>-<digits>, and the AWS CLI rejects a 7-character ShardId before sending.
  5. backlog.md: dropped the line claiming a ttl_deletion_target_seconds runtime setting. No such setting exists; settings set rejects the key, and the sweep interval is a fixed constant.

Why

Each line disagreed with the shipped behavior. The default is 0.25 on all four backends (cmd_settings.rs, each backend's setting default, warm_throughput.rs). The duplicate headings rendered a second anchor (...-1) and returned two search hits for one phrase.

Closes #524

Testing done

  • Verified 0.25 is the default on SQLite, PostgreSQL, MongoDB and Cassandra in the source, and that ttl_deletion_target_seconds is in no settings key list.
  • Checked that no page links to the old duplicate anchors and that the surviving #health-check link still resolves to the first section.
  • Docs only, so the build, test and clippy items below are not applicable.

Notes

Checklist

  • I have read CONTRIBUTING.md
  • I have updated documentation if behavior changed
  • Docs-only change; no code, so build, test, clippy and new-test items do not apply

ADR / RFC: n/a. Documentation corrections only.


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).

- differences-from-dynamodb: control_plane_delay_seconds default is 0.25, not 5
- 05-admin-guide: name the second Health Check heading so its anchor is unique
- 01-architecture-guide: name the second Authentication heading likewise
- 03-usage-guide: use the <shard-id> placeholder, not an invalid shard-0
- backlog: drop the ttl_deletion_target_seconds line; no such setting exists

Closes #524

@LeeroyHannigan LeeroyHannigan 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.

Thanks. I checked the five changes against the code at main 92155f3. All five hold:

  • control_plane_delay_seconds defaults to 0.25 on every backend and in extenddb settings.
  • In the admin guide, the second Health Check heading is the one that no link targets. In the architecture guide, no page links #authentication.
  • A shard ID like shard-0 is shorter than the 28 characters that ShardId needs, so the CLI refuses it before it sends the request.
  • No code reads ttl_deletion_target_seconds.

CI passed, and the branch merges with main.

Two notes on the description. Neither is a condition:

  • Item 1 repeats #1329 (opened 21 November). #1329 changes the same two rows of docs/differences-from-dynamodb.md and the same sentence of docs/manuals/03-usage-guide.md, line for line, and #523 changes that sentence the same way. Identical lines merge cleanly, so the second of these PRs to merge keeps the first one's text.
  • The Notes say that #523 removes docs/getting-started.md and that the hunks do not overlap #523. #523 rewrites that file and does not remove it, and its hunk in 03-usage-guide.md meets item 1 on one identical line.

@LeeroyHannigan
LeeroyHannigan added this pull request to the merge queue Dec 3, 2026
Merged via the queue into main with commit 1174651 Dec 4, 2026
51 checks passed
@LeeroyHannigan
LeeroyHannigan deleted the eliseong-docs-stale-defaults-2026-11-24 branch December 4, 2026 04:32
LeeroyHannigan added a commit that referenced this pull request Dec 4, 2026
Main fixed the control_plane_delay_seconds default in
docs/differences-from-dynamodb.md to 0.25 (#1443). This branch adds
UPDATING to the same row. The merge keeps the 0.25 default and this
branch's description.
LeeroyHannigan added a commit that referenced this pull request Dec 4, 2026
Main fixed the default in the Table creation delay row of
docs/differences-from-dynamodb.md (#1443), the same fix this branch
made. The merge keeps main's row and adds this branch's row for
DeleteTable on a CREATING table.
LeeroyHannigan added a commit that referenced this pull request Dec 4, 2026
…-time

The merge takes f583547, the last head of #1093 before main merged
it as 1e2ebdd. The last merge took b8f73c4. Since then, #1093
merged main at 1174651, eight PRs past db8a90d: #1466, #1087,
#768, #1296, #1485, #1228, #1325 and #1443. Git merged without a
conflict. Two files of this branch have changes on both sides:

- crates/storage/src/util/mod.rs: #1087 declares and exports
  scan_segment, and this branch declares and exports throughput.
- docs/differences-from-dynamodb.md: #1443 changes the
  control_plane_delay_seconds default to 0.25 in two rows, and this
  branch adds the LastIncreaseDateTime row to the Control Plane table.
LeeroyHannigan added a commit that referenced this pull request Dec 4, 2026
Main is at 1e2ebdd, ten commits past db8a90d: #1466, #1087,
#768, #1296, #1485, #1228, #1325, #1443, #1269 and the squash commit
of #1093.

One file conflicted: docs/manuals/07-upgrade-manual.md. #1093 adds its
v1.2.0 entry at the top of "Behavior Changes by Release", where this
branch has its entry. The merge keeps both entries without change. The
entry of this branch stays first. The entry of #1093 comes next, above
the other v1.2.0 entries of main. #1087 adds its entry after the other
v1.2.0 entries of main, and git merged it with no conflict.

Git merged four other files with no conflict:

- crates/core/src/validation/mod.rs: #1228 adds the pattern clause for
  an empty value in validate_name_member. This branch declares the
  table_name_length module near the top of the file.
- crates/server/src/table_name_gate.rs: #1296 adds has_no_table_member
  and an arm of check_table_name_chars for the six operations that have
  no table member. This branch checks none of those operations.
- crates/wasm-adapter/parity/corpus.json: #1087 adds a Scan case, and
  #1228 changes the text of a ListBackups case. This branch changes
  other cases.
- docs/manuals/10-security-model.md: #1325 adds the
  Content-Security-Policy line of the console. This branch changes the
  line on the requests that get an answer before the IAM decision.
LeeroyHannigan added a commit that referenced this pull request Dec 4, 2026
Main is at 1e2ebdd, six commits past 44a7b79: #1485, #1228,
#1325, #1443, #1269 and the squash commit of #1093.

One file conflicted:
crates/storage-mongodb/src/data_engine_live_tests.rs. #1093 declares
the update_window module after delete_table, where this branch
declares put_race and contention. The merge keeps all three
declarations: update_window first, then the two of this branch.

Git merged five other files with no conflict:

- crates/storage-mongodb/src/snapshot_engine.rs: #1093 checks that a
  table serves with TableStatus::serves, and its tests set a table to
  CREATING instead of UPDATING. This branch builds a test engine with
  MongoEngine::for_test, at other lines.
- crates/storage/src/error.rs: #1093 adds a sentence to the doc comment
  of IndexesInUse. This branch changes the doc comment of Transient.
- crates/storage/src/lib.rs: #1093 declares update_window_conformance,
  and this branch declares request_clock.
- docs/differences-from-dynamodb.md: #1443 changes the default delay
  to 0.25 s, and #1093 changes the row on stream disable and the row of
  the delay setting. This branch changes two rows near the top and adds
  the row on sustained contention.
- docs/manuals/07-upgrade-manual.md: #1093 adds its v1.2.0 entry at the
  top of "Behavior Changes by Release". The entry of this branch stays
  after the v1.2.0 entries of main.
LeeroyHannigan added a commit that referenced this pull request Dec 4, 2026
Main is at 1e2ebdd, six commits past 44a7b79: #1485, #1228,
#1325, #1443, #1269 and the squash commit of #1093.

One file conflicted:
crates/storage-mongodb/src/data_engine_live_tests.rs. #1093 declares
the update_window module after delete_table, where this branch
declares the token module. The merge keeps both declarations:
update_window first, then token.

Git merged five other files with no conflict:

- crates/core/src/validation/mod.rs: #1228 adds the pattern clause for
  an empty value in validate_name_member. This branch changes the index
  key checks, at other lines.
- crates/storage/src/error.rs: #1093 adds a sentence to the doc comment
  of IndexesInUse, and this branch adds TransactionInProgress.
- crates/storage/src/lib.rs: #1093 declares update_window_conformance,
  and this branch adds names to the transact exports.
- docs/differences-from-dynamodb.md: #1443 changes the default delay
  to 0.25 s, and #1093 changes the row on stream disable and the row of
  the delay setting. This branch changes the row on index key
  validation.
- docs/manuals/07-upgrade-manual.md: #1093 adds its v1.2.0 entry at the
  top of "Behavior Changes by Release". The entry of this branch stays
  after the v1.2.0 entries of main.
LeeroyHannigan added a commit that referenced this pull request Dec 4, 2026
Main is at 1e2ebdd, eight commits past 5826e1b: #768, #1296,
#1485, #1228, #1325, #1443, #1269 and the squash commit of #1093.

Three files conflicted, in four hunks. In each hunk the UpdateTable
window of #1093 meets the answer of this branch for a DELETING table:

- crates/storage-postgres/src/update_table.rs and
  crates/storage-sqlite/src/update_table.rs have one hunk each. #1093
  reads three more columns of the table row: the stored throughput, the
  table class and the window (in_window on PostgreSQL,
  stored_transition_at on SQLite). This branch answers a DELETING table
  with TableBeingDeleted right after UpdateTable reads the row. The
  merge keeps the wider read of #1093, then the DELETING check of this
  branch, then the check for a status other than ACTIVE. The window
  checks of #1093 come after that check, as on main.
- crates/storage-mongodb/src/table_engine.rs has two hunks, both in
  require_active_table. #1093 makes the function return the catalog
  document of the table, and UpdateTable reads the window from it. This
  branch answers DELETING with TableBeingDeleted in a match on the
  status. The merge keeps that match, and its ACTIVE arm returns the
  document. The doc comment names the document and the three answers.

A table has one stored status. #1093 reports UPDATING only for a
stored ACTIVE table whose status_transition_at is later than now
(reported_status in crates/storage/src/util/mod.rs). So no table is
UPDATING and DELETING at the same time, and the merge does not choose
between the two answers.

Git merged six other files of this branch with no conflict:

- crates/engine/src/update_table.rs: #1093 changes the doc comment of
  handle_update_table and declares the status_tests module. This branch
  maps TableBeingDeleted in update_table_err_to_dynamo.
- crates/storage-cassandra/src/update_table.rs: #1093 reads
  status_transition_at and adds the window. This branch adds the same
  DELETING check before the check for a status other than ACTIVE.
- crates/storage-postgres/tests/table_snapshot.rs: #1093 writes
  CREATING instead of UPDATING in two fixtures. This branch changes
  other tests.
- crates/storage/src/error.rs: #1093 adds a sentence to the doc comment
  of IndexesInUse, and this branch adds TableBeingDeleted.
- docs/differences-from-dynamodb.md: #1443 changes the default delay
  to 0.25 s, and #1093 changes the row on stream disable and the row of
  the delay setting. This branch adds the row on requests during a
  DELETING window.
- docs/manuals/07-upgrade-manual.md: #1093 adds its v1.2.0 entry at the
  top of "Behavior Changes by Release". The entry of this branch stays
  after the v1.2.0 entries of main. The change of this branch to the
  entry of #1411 stays too.
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.

docs: stale defaults and duplicate headings on pages outside the install rewrite

2 participants