Skip to content

MINOR; Explain how to set old default partitioner#12630

Merged
ijuma merged 3 commits intoapache:trunkfrom
artemlivshits:upgrade_doc_3.3
Sep 13, 2022
Merged

MINOR; Explain how to set old default partitioner#12630
ijuma merged 3 commits intoapache:trunkfrom
artemlivshits:upgrade_doc_3.3

Conversation

@artemlivshits
Copy link
Copy Markdown
Contributor

Added a paragraph explaining how to set old default partitioner.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

Comment thread docs/upgrade.html Outdated
</li>
</ol>

<p>Note that upgrading client to 3.3.0 would introduce a new Sticky Partitioner, described in
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: We usually includes these kind of info in the Notable changes in 3.3.0 section. I would put it second in that list.

Copy link
Copy Markdown
Member

@ijuma ijuma Sep 13, 2022

Choose a reason for hiding this comment

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

In addition to that, I would write something like:

The partitioner used by default for records with no keys has been improved to avoid pathological behavior when one or more brokers are slow. The new logic can affect the batching behavior, which can be tuned via batch.size and/or linger.ms. The previous behavior can be restored by setting partitioner.class=org.apache.kafka.clients.producer.internals.DefaultPartitioner. See KIP-794 for more details.

The above is just an idea, but the point is to include a short description of how it's better, highlight the potential need for additional tuning, explain how to restore the previous behavior and include a link to the KIP. I also skipped all formatting, but it's good that links, code, etc. were used.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@jsancio jsancio changed the title Doc: explain how to set old default partitioner MINOR; Explain how to set old default partitioner Sep 13, 2022
Copy link
Copy Markdown
Contributor Author

@artemlivshits artemlivshits left a comment

Choose a reason for hiding this comment

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

Thank you for review @dajac , @ijuma updated.

Comment thread docs/upgrade.html Outdated
</li>
</ol>

<p>Note that upgrading client to 3.3.0 would introduce a new Sticky Partitioner, described in
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed

Copy link
Copy Markdown
Member

@ijuma ijuma left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, LGTM.

@ijuma ijuma merged commit 7b49f17 into apache:trunk Sep 13, 2022
ijuma pushed a commit that referenced this pull request Sep 13, 2022
…oner (KIP-794) (#12630)

Reviewers: Ismael Juma <ismael@juma.me.uk>, David Jacot <djacot@confluent.io>
ijuma added a commit to confluentinc/kafka that referenced this pull request Sep 21, 2022
…eptember 2022)

`Jenkinsfile` was the only conflict and we ignore the changes since
they are not relevant to the Confluent build.

* apache-github/3.3: (61 commits)
  KAFKA-14214: Introduce read-write lock to StandardAuthorizer for consistent ACL reads. (apache#12628)
  KAFKA-14243: Temporarily disable unsafe downgrade (apache#12664)
  KAFKA-14240; Validate kraft snapshot state on startup (apache#12653)
  KAFKA-14233: disable testReloadUpdatedFilesWithoutConfigChange first to fix the build (apache#12658)
  KAFKA-14238;  KRaft metadata log should not delete segment past the latest snapshot (apache#12655)
  KAFKA-14156: Built-in partitioner may create suboptimal batches (apache#12570)
  MINOR: Adds KRaft versions of most streams system tests (apache#12458)
  MINOR; Add missing li end tag (apache#12640)
  MINOR: Mention that kraft is production ready in upgrade notes (apache#12635)
  MINOR: Add upgrade note regarding the Strictly Uniform Sticky Partitioner (KIP-794)  (apache#12630)
  KAFKA-14222; KRaft's memory pool should always allocate a buffer (apache#12625)
  KAFKA-14208; Do not raise wakeup in consumer during asynchronous offset commits (apache#12626)
  KAFKA-14196; Do not continue fetching partitions awaiting auto-commit prior to revocation (apache#12603)
  KAFKA-14215; Ensure forwarded requests are applied to broker request quota (apache#12624)
  MINOR; Remove end html tag from upgrade (apache#12605)
  Remove the html end tag from upgrade.html
  KAFKA-14205; Document how to replace the disk for the KRaft Controller (apache#12597)
  KAFKA-14203 Disable snapshot generation on broker after metadata errors (apache#12596)
  KAFKA-14216: Remove ZK reference from org.apache.kafka.server.quota.ClientQuotaCallback javadoc (apache#12617)
  KAFKA-14217: app-reset-tool.html should not show --zookeeper flag that no longer exists (apache#12618)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants