Skip to content

docs: fix partition IDs and auto commit wording in the README quickstart - #4040

Merged
hubcio merged 2 commits into
apache:masterfrom
justinmclean:docs/readme-quickstart-ids
Sep 3, 2026
Merged

docs: fix partition IDs and auto commit wording in the README quickstart#4040
hubcio merged 2 commits into
apache:masterfrom
justinmclean:docs/readme-quickstart-ids

Conversation

@justinmclean

Copy link
Copy Markdown
Member

Which issue does this PR address?

N/A

Rationale

The quickstart tells a new user to use partition 1 on a topic whose partitions are 0 and 1, and describes a poll as running without auto commit while passing --auto-commit. It is the first thing a newcomer runs.

What changed?

The quickstart said a topic created with 2 partitions has "IDs 1 and 2", then sent to --partition-id 1 and polled partition 1. Stream, topic and partition IDs are assigned starting from 0, so that topic has partitions 0 and 1, and the example was addressing the second partition while describing it as the first. It now uses partition 0 throughout.

The poll example described itself as "without auto commit (storing consumer offset on server)" while passing --auto-commit.

"(message ID 1)" and "(message ID 2)" become "the first message" and "a second message" — same meaning, without reading as a claim about server-assigned IDs.

Local Execution

  • Passed — documentation only, no code paths changed and nothing to execute. The partition numbering was checked against core/integration/tests/data_integrity/verify_consumer_group_partition_assignment.rs, which creates a topic with 3 partitions and sends to 0..PARTITIONS_COUNT, and against the Concepts and Architecture pages ("assigned from 0"). The --auto-commit wording was checked against the CLI's own help text.

AI Usage

Yes I used claude, in a Cowork session. All changes reviewed by a human.

The quickstart described a topic with 2 partitions as having IDs 1 and 2,
sent to --partition-id 1 and polled partition 1.

Stream, topic and partition IDs are assigned starting from 0, so a topic
created with 2 partitions has partitions 0 and 1. Use partition 0
throughout.

Also says "the first message" and "a second message" rather than
"message ID 1" and "message ID 2", which read as a claim about
server-assigned IDs when they only meant the first and second example.
The poll example described itself as "without auto commit (storing
consumer offset on server)" while the command passes --auto-commit. The
parenthetical describes what auto commit does, so the prose was the half
that was wrong.

--auto-commit is documented in the CLI as "whether to commit offset on
the server automatically after polling the messages", which is what the
example intends to show.
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

Thanks for the PR. It is labeled S-waiting-on-review and queued for review.

Slash commands (own line, regular comment) move it around the queue:

  • /ready - back to S-waiting-on-review after addressing feedback
  • /author - flip to S-waiting-on-author while you finish changes
  • /request-review @user-or-team - request a reviewer

See CONTRIBUTING.md for details.

@github-actions github-actions Bot added the S-waiting-on-review PR is waiting on a reviewer label Sep 3, 2026
@justinmclean justinmclean changed the title Docs/readme quickstart ids docs(readme): fix partition IDs and auto commit wording in the quickstart Sep 3, 2026
@justinmclean justinmclean changed the title docs(readme): fix partition IDs and auto commit wording in the quickstart docs: fix partition IDs and auto commit wording in the README quickstart Sep 3, 2026
@hubcio
hubcio merged commit c3df915 into apache:master Sep 3, 2026
32 of 34 checks passed
@github-actions github-actions Bot removed the S-waiting-on-review PR is waiting on a reviewer label Sep 3, 2026
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