[CLI-3798] deprecation of --max-partition-memory-bytes - #3488
[CLI-3798] deprecation of --max-partition-memory-bytes#3488Cynthia Qin (cqin-confluent) wants to merge 1 commit into
Conversation
KIP-1231 deprecates the `--max-partition-memory-bytes` option in the Apache Kafka console producer, which `confluent local services kafka produce` wraps. Reflect the deprecation by adding the repo-standard `DEPRECATED: ` prefix to the flag help text, and update the two produce-help golden files. Also fix a pre-existing typo ("small" -> "smaller") on the same line.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
🎉 All Contributor License Agreements have been signed. Ready to merge. |
There was a problem hiding this comment.
Pull request overview
This PR updates the Confluent Platform confluent local services kafka produce help text to reflect KIP-1231’s deprecation of the Kafka console producer --max-partition-memory-bytes option, while keeping the flag behavior unchanged.
Changes:
- Prepends
DEPRECATED:to the--max-partition-memory-bytesflag usage string and fixes the “small” → “smaller” typo. - Updates the corresponding CLI help golden outputs for both cloud-config and on-prem-config help snapshots.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| internal/local/command_service_kafka.go | Updates the max-partition-memory-bytes flag usage string to include the deprecation notice and corrects a typo. |
| test/fixtures/output/local/services/kafka/produce-help.golden | Updates expected --help output to match the new deprecation-prefixed flag description. |
| test/fixtures/output/local/services/kafka/produce-help-onprem.golden | Updates expected on-prem --help output to match the new deprecation-prefixed flag description. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|





Release Notes
Bug Fixes
--max-partition-memory-bytesflag as deprecated in theconfluent local services kafka producecommandChecklist
Whatsection below whether this PR applies to Confluent Cloud, Confluent Platform, or both.Test & Reviewsection below.Blast Radiussection below.What
Applies to: Confluent Platform — specifically the on-prem
confluent local services kafka producecommand. No Confluent Cloud surface is affected: the cloud/native produce paths (confluent kafka topic produce,confluent local kafka topic produce) use native producers and never exposed this flag.KIP-1231 deprecates the
--max-partition-memory-bytesoption in the Apache Kafka console producer.confluent local services kafka producewraps that console producer and forwards this flag as a passthrough, so this PR reflects the deprecation in the CLI's help text.Changes:
DEPRECATED:prefix (matchingpkg/featureflags/announcements_and_deprecation.goand theinternal/tableflow--record-failure-strategyprecedent) to the flag's usage string ininternal/local/command_service_kafka.go.produce-help.golden,produce-help-onprem.golden).The flag is retained and still works — removing it would be a breaking change. This is a help-text-only deprecation notice, matching the existing
--record-failure-strategyprecedent. It intentionally does not emit a runtime warning when the flag is used; that is the separate, server-driven LaunchDarkly deprecation mechanism and is out of scope here.Blast Radius
Minimal. This is a help-text-only change to a single Confluent Platform local command flag; the flag's behavior is unchanged and it continues to work. Worst case if something is wrong: the
--helpoutput forconfluent local services kafka producerenders incorrectly. No runtime, data-path, or Confluent Cloud impact.References
--max-partition-memory-bytesin ConsoleProducerTest & Review
Verified locally:
make build— passmake lint-go— passmake lint-cli— pass (confirms theDEPRECATED:text passes the user-facing-string spell check)make integration-test INTEGRATION_TEST_ARGS="-run TestCLI/TestHelp"— pass, including the two relevant subtests:TestCLI/TestHelp/local_services_kafka_produce_--help(cloud config)TestCLI/TestHelp/local_services_kafka_produce_--help#01(on-prem config)Help output for this flag, before → after:
🤖 Generated with Claude Code