Skip to content

Add cluster property to limit max.message.bytes#27997

Merged
ballard26 merged 4 commits intoredpanda-data:devfrom
ballard26:max-message-bytes-limits
Oct 20, 2025
Merged

Add cluster property to limit max.message.bytes#27997
ballard26 merged 4 commits intoredpanda-data:devfrom
ballard26:max-message-bytes-limits

Conversation

@ballard26
Copy link
Copy Markdown
Contributor

@ballard26 ballard26 commented Oct 10, 2025

This PR adds the kafka_max_message_size_upper_limit cluster property. This property can be used to limit the max value of the max.message.bytes topic property.

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v25.2.x
  • v25.1.x
  • v24.3.x

Release Notes

Features

  • Add the kafka_max_message_size_upper_limit cluster property. This property can be used to limit the max value of the max.message.bytes topic property.

@ballard26 ballard26 requested a review from a team as a code owner October 10, 2025 03:33
Copilot AI review requested due to automatic review settings October 10, 2025 03:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a new cluster property kafka_max_message_size_upper_limit to constrain the maximum value that users can set for the max.message.bytes topic property. The change provides administrators with control over message size limits across all topics.

Key changes:

  • Added a new cluster configuration property kafka_max_message_size_upper_limit
  • Updated validation logic for max.message.bytes in both topic creation and configuration alteration
  • Added comprehensive test coverage for the new validation behavior

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/v/config/configuration.h Declares the new kafka_max_message_size_upper_limit property
src/v/config/configuration.cc Defines the configuration property with appropriate metadata
src/v/kafka/server/handlers/topics/validators.h Updates topic creation validator to respect the upper limit
src/v/kafka/server/handlers/configs/config_utils.h Adds new validator for configuration alterations
src/v/kafka/server/handlers/alter_configs.cc Integrates the validator into alter configs flow
src/v/kafka/server/handlers/incremental_alter_configs.cc Integrates the validator into incremental alter configs flow
tests/rptest/clients/types.py Adds constant for the max message bytes property
tests/rptest/tests/topic_creation_test.py Tests validation during topic creation
tests/rptest/tests/alter_topic_configuration_test.py Tests validation during topic configuration changes

const uint32_t upper_limit = config::shard_local_cfg()
.kafka_max_message_size_upper_limit()
.value_or(
std::numeric_limits<int32_t>::max());
Copy link

Copilot AI Oct 10, 2025

Choose a reason for hiding this comment

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

Type mismatch: upper_limit is declared as uint32_t but std::numeric_limits<int32_t>::max() returns int32_t. This could cause issues when comparing with negative values or when the limit exceeds int32_t range. Either change upper_limit to int32_t or use std::numeric_limits<uint32_t>::max().

Suggested change
std::numeric_limits<int32_t>::max());
std::numeric_limits<uint32_t>::max());

Copilot uses AI. Check for mistakes.
Comment on lines +198 to +201
auto val = boost::lexical_cast<int32_t>(it->value.value());
auto upper_limit = config::shard_local_cfg()
.kafka_max_message_size_upper_limit()
.value_or(std::numeric_limits<int32_t>::max());
Copy link

Copilot AI Oct 10, 2025

Choose a reason for hiding this comment

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

Type mismatch: upper_limit is inferred as int32_t from value_or() but is compared with val which is int32_t. However, the configuration property is defined as std::optional<int32_t> but used in a context where it might be expected to handle larger values. Consider using consistent types throughout.

Suggested change
auto val = boost::lexical_cast<int32_t>(it->value.value());
auto upper_limit = config::shard_local_cfg()
.kafka_max_message_size_upper_limit()
.value_or(std::numeric_limits<int32_t>::max());
auto val = boost::lexical_cast<int64_t>(it->value.value());
auto upper_limit = config::shard_local_cfg()
.kafka_max_message_size_upper_limit()
.value_or(std::numeric_limits<int64_t>::max());

Copilot uses AI. Check for mistakes.
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.

Yeah, I'm not sure why we're using int32_t for max.message.bytes in the topic creation handler. Then using uint32_t for it in the alter config handler. Maybe an odd nuance with the Kafka API? cc: @michael-redpanda

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Probably java

@vbotbuildovich
Copy link
Copy Markdown
Collaborator

vbotbuildovich commented Oct 10, 2025

Retry command for Build#73922

please wait until all jobs are finished before running the slash command

/ci-repeat 1
tests/rptest/tests/random_node_operations_test.py::RedpandaNodeOperationsSmokeTest.test_node_ops_smoke_test@{"cloud_storage_type":1,"mixed_versions":false}
tests/rptest/tests/random_node_operations_test.py::RandomNodeOperationsTest.test_node_operations@{"cloud_storage_type":1,"compaction_mode":"chunked_sliding_window","enable_failures":true,"mixed_versions":false,"with_iceberg":true}
tests/rptest/tests/random_node_operations_test.py::RandomNodeOperationsTest.test_node_operations@{"cloud_storage_type":1,"compaction_mode":"chunked_sliding_window","enable_failures":false,"mixed_versions":false,"with_iceberg":false}
tests/rptest/tests/random_node_operations_test.py::RandomNodeOperationsTest.test_node_operations@{"cloud_storage_type":2,"compaction_mode":"chunked_sliding_window","enable_failures":true,"mixed_versions":false,"with_iceberg":false}
tests/rptest/tests/random_node_operations_test.py::RandomNodeOperationsTest.test_node_operations@{"cloud_storage_type":1,"compaction_mode":"adjacent_merge","enable_failures":false,"mixed_versions":false,"with_iceberg":true}
tests/rptest/tests/random_node_operations_test.py::RandomNodeOperationsTest.test_node_operations@{"cloud_storage_type":1,"compaction_mode":"chunked_sliding_window","enable_failures":true,"mixed_versions":false,"with_iceberg":false}
tests/rptest/tests/random_node_operations_test.py::RandomNodeOperationsTest.test_node_operations@{"cloud_storage_type":2,"compaction_mode":"adjacent_merge","enable_failures":true,"mixed_versions":false,"with_iceberg":false}
tests/rptest/tests/random_node_operations_test.py::RandomNodeOperationsTest.test_node_operations@{"cloud_storage_type":2,"compaction_mode":"sliding_window","enable_failures":false,"mixed_versions":false,"with_iceberg":false}
tests/rptest/tests/random_node_operations_test.py::RandomNodeOperationsTest.test_node_operations@{"cloud_storage_type":2,"compaction_mode":"adjacent_merge","enable_failures":false,"mixed_versions":false,"with_iceberg":false}
tests/rptest/tests/random_node_operations_test.py::RandomNodeOperationsTest.test_node_operations@{"cloud_storage_type":2,"compaction_mode":"chunked_sliding_window","enable_failures":false,"mixed_versions":false,"with_iceberg":false}
tests/rptest/tests/random_node_operations_test.py::RandomNodeOperationsTest.test_node_operations@{"cloud_storage_type":1,"compaction_mode":"sliding_window","enable_failures":false,"mixed_versions":false,"with_iceberg":false}
tests/rptest/tests/random_node_operations_test.py::RandomNodeOperationsTest.test_node_operations@{"cloud_storage_type":1,"compaction_mode":"sliding_window","enable_failures":true,"mixed_versions":false,"with_iceberg":true}
tests/rptest/tests/random_node_operations_test.py::RandomNodeOperationsTest.test_node_operations@{"cloud_storage_type":1,"compaction_mode":"adjacent_merge","enable_failures":true,"mixed_versions":false,"with_iceberg":false}

@vbotbuildovich
Copy link
Copy Markdown
Collaborator

vbotbuildovich commented Oct 10, 2025

CI test results

test results on build#73922
test_class test_method test_arguments test_kind job_url test_status passed reason test_history
DatalakeThrottlingTest test_basic_throttling {"catalog_type": "nessie", "cloud_storage_type": 1} integration https://buildkite.com/redpanda/redpanda/builds/73922#0199cc70-aa86-4b7b-8408-79ab17337ada FLAKY 20/21 upstream reliability is '100.0'. current run reliability is '95.23809523809523'. drift is 4.7619 and the allowed drift is set to 50. The test should PASS https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=DatalakeThrottlingTest&test_method=test_basic_throttling
PartitionMovementUpgradeTest test_basic_upgrade null integration https://buildkite.com/redpanda/redpanda/builds/73922#0199cc66-045a-4a4c-b148-66e73a847339 FLAKY 20/21 upstream reliability is '99.09502262443439'. current run reliability is '95.23809523809523'. drift is 3.85693 and the allowed drift is set to 50. The test should PASS https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=PartitionMovementUpgradeTest&test_method=test_basic_upgrade
RandomNodeOperationsTest test_node_operations {"cloud_storage_type": 2, "compaction_mode": "adjacent_merge", "enable_failures": false, "mixed_versions": false, "with_iceberg": false} integration https://buildkite.com/redpanda/redpanda/builds/73922#0199cc70-aa8b-440e-87a4-5120a54eedb5 FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=RandomNodeOperationsTest&test_method=test_node_operations
RandomNodeOperationsTest test_node_operations {"cloud_storage_type": 1, "compaction_mode": "adjacent_merge", "enable_failures": false, "mixed_versions": false, "with_iceberg": false} integration https://buildkite.com/redpanda/redpanda/builds/73922#0199cc70-aa8c-4053-b850-157de905d445 FAIL 0/1 https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=RandomNodeOperationsTest&test_method=test_node_operations
RandomNodeOperationsTest test_node_operations {"cloud_storage_type": 2, "compaction_mode": "chunked_sliding_window", "enable_failures": false, "mixed_versions": false, "with_iceberg": false} integration https://buildkite.com/redpanda/redpanda/builds/73922#0199cc70-aa8d-45c1-a03e-cb7718c304ec FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=RandomNodeOperationsTest&test_method=test_node_operations
RandomNodeOperationsTest test_node_operations {"cloud_storage_type": 1, "compaction_mode": "chunked_sliding_window", "enable_failures": false, "mixed_versions": false, "with_iceberg": false} integration https://buildkite.com/redpanda/redpanda/builds/73922#0199cc70-aa8e-408a-9ffc-224387f44f73 FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=RandomNodeOperationsTest&test_method=test_node_operations
RandomNodeOperationsTest test_node_operations {"cloud_storage_type": 2, "compaction_mode": "sliding_window", "enable_failures": false, "mixed_versions": false, "with_iceberg": false} integration https://buildkite.com/redpanda/redpanda/builds/73922#0199cc70-aa84-4ff8-9546-1360254ca446 FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=RandomNodeOperationsTest&test_method=test_node_operations
RandomNodeOperationsTest test_node_operations {"cloud_storage_type": 1, "compaction_mode": "sliding_window", "enable_failures": false, "mixed_versions": false, "with_iceberg": false} integration https://buildkite.com/redpanda/redpanda/builds/73922#0199cc70-aa86-4b7b-8408-79ab17337ada FAIL 0/1 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=RandomNodeOperationsTest&test_method=test_node_operations
RandomNodeOperationsTest test_node_operations {"cloud_storage_type": 1, "compaction_mode": "adjacent_merge", "enable_failures": false, "mixed_versions": false, "with_iceberg": true} integration https://buildkite.com/redpanda/redpanda/builds/73922#0199cc70-aa88-42fb-a85d-8a577f5c206f FAIL 0/1 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=RandomNodeOperationsTest&test_method=test_node_operations
RandomNodeOperationsTest test_node_operations {"cloud_storage_type": 1, "compaction_mode": "chunked_sliding_window", "enable_failures": false, "mixed_versions": false, "with_iceberg": true} integration https://buildkite.com/redpanda/redpanda/builds/73922#0199cc70-aa8a-4aaa-b122-873dd715a3fa FAIL 0/15 https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=RandomNodeOperationsTest&test_method=test_node_operations
RandomNodeOperationsTest test_node_operations {"cloud_storage_type": 1, "compaction_mode": "sliding_window", "enable_failures": false, "mixed_versions": false, "with_iceberg": true} integration https://buildkite.com/redpanda/redpanda/builds/73922#0199cc70-aa8c-4053-b850-157de905d445 FAIL 0/15 https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=RandomNodeOperationsTest&test_method=test_node_operations
RandomNodeOperationsTest test_node_operations {"cloud_storage_type": 2, "compaction_mode": "adjacent_merge", "enable_failures": true, "mixed_versions": false, "with_iceberg": false} integration https://buildkite.com/redpanda/redpanda/builds/73922#0199cc70-aa84-4ff8-9546-1360254ca446 FAIL 0/1 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=RandomNodeOperationsTest&test_method=test_node_operations
RandomNodeOperationsTest test_node_operations {"cloud_storage_type": 1, "compaction_mode": "adjacent_merge", "enable_failures": true, "mixed_versions": false, "with_iceberg": false} integration https://buildkite.com/redpanda/redpanda/builds/73922#0199cc70-aa86-4b7b-8408-79ab17337ada FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=RandomNodeOperationsTest&test_method=test_node_operations
RandomNodeOperationsTest test_node_operations {"cloud_storage_type": 2, "compaction_mode": "chunked_sliding_window", "enable_failures": true, "mixed_versions": false, "with_iceberg": false} integration https://buildkite.com/redpanda/redpanda/builds/73922#0199cc70-aa86-4553-a463-f4fa0d6383b8 FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=RandomNodeOperationsTest&test_method=test_node_operations
RandomNodeOperationsTest test_node_operations {"cloud_storage_type": 1, "compaction_mode": "chunked_sliding_window", "enable_failures": true, "mixed_versions": false, "with_iceberg": false} integration https://buildkite.com/redpanda/redpanda/builds/73922#0199cc70-aa88-42fb-a85d-8a577f5c206f FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=RandomNodeOperationsTest&test_method=test_node_operations
RandomNodeOperationsTest test_node_operations {"cloud_storage_type": 2, "compaction_mode": "sliding_window", "enable_failures": true, "mixed_versions": false, "with_iceberg": false} integration https://buildkite.com/redpanda/redpanda/builds/73922#0199cc70-aa89-4a23-9c89-c3daac927c10 FAIL 0/20 https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=RandomNodeOperationsTest&test_method=test_node_operations
RandomNodeOperationsTest test_node_operations {"cloud_storage_type": 1, "compaction_mode": "sliding_window", "enable_failures": true, "mixed_versions": false, "with_iceberg": false} integration https://buildkite.com/redpanda/redpanda/builds/73922#0199cc70-aa8a-4aaa-b122-873dd715a3fa FAIL 0/14 https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=RandomNodeOperationsTest&test_method=test_node_operations
RandomNodeOperationsTest test_node_operations {"cloud_storage_type": 1, "compaction_mode": "adjacent_merge", "enable_failures": true, "mixed_versions": false, "with_iceberg": true} integration https://buildkite.com/redpanda/redpanda/builds/73922#0199cc70-aa8c-4053-b850-157de905d445 FAIL 0/14 https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=RandomNodeOperationsTest&test_method=test_node_operations
RandomNodeOperationsTest test_node_operations {"cloud_storage_type": 1, "compaction_mode": "chunked_sliding_window", "enable_failures": true, "mixed_versions": false, "with_iceberg": true} integration https://buildkite.com/redpanda/redpanda/builds/73922#0199cc70-aa8e-408a-9ffc-224387f44f73 FAIL 0/1 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=RandomNodeOperationsTest&test_method=test_node_operations
RandomNodeOperationsTest test_node_operations {"cloud_storage_type": 1, "compaction_mode": "sliding_window", "enable_failures": true, "mixed_versions": false, "with_iceberg": true} integration https://buildkite.com/redpanda/redpanda/builds/73922#0199cc70-aa86-4b7b-8408-79ab17337ada FAIL 0/1 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=RandomNodeOperationsTest&test_method=test_node_operations
RedpandaNodeOperationsSmokeTest test_node_ops_smoke_test {"cloud_storage_type": 1, "mixed_versions": false} integration https://buildkite.com/redpanda/redpanda/builds/73922#0199cc66-045a-4a4c-b148-66e73a847339 FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=RedpandaNodeOperationsSmokeTest&test_method=test_node_ops_smoke_test
RedpandaNodeOperationsSmokeTest test_node_ops_smoke_test {"cloud_storage_type": 1, "mixed_versions": false} integration https://buildkite.com/redpanda/redpanda/builds/73922#0199cc70-aa89-4a23-9c89-c3daac927c10 FAIL 0/19 https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=RedpandaNodeOperationsSmokeTest&test_method=test_node_ops_smoke_test
test results on build#73984
test_class test_method test_arguments test_kind job_url test_status passed reason test_history
EndToEndCloudTopicsTest test_write null integration https://buildkite.com/redpanda/redpanda/builds/73984#0199cf74-7aaa-4bcc-9e63-fa90815544a4 FLAKY 18/21 upstream reliability is '99.46808510638297'. current run reliability is '85.71428571428571'. drift is 13.7538 and the allowed drift is set to 50. The test should PASS https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=EndToEndCloudTopicsTest&test_method=test_write
test results on build#74304
test_class test_method test_arguments test_kind job_url test_status passed reason test_history
MasterTestSuite test_async_manifest_view_evict unit https://buildkite.com/redpanda/redpanda/builds/74304#0199eb1f-04f8-475e-8090-b77793837762 FAIL 0/1
AlterTopicConfiguration test_batch_max_bytes_validation null integration https://buildkite.com/redpanda/redpanda/builds/74304#0199eb55-06af-449d-ae55-1b5d2ef848d9 FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=AlterTopicConfiguration&test_method=test_batch_max_bytes_validation
ClusterRateQuotaTest test_client_group_consume_rate_throttle_mechanism null integration https://buildkite.com/redpanda/redpanda/builds/74304#0199eb55-06b9-4a0a-a7b8-83faaad87848 FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=ClusterRateQuotaTest&test_method=test_client_group_consume_rate_throttle_mechanism
ClusterRateQuotaTest test_client_group_produce_rate_throttle_mechanism null integration https://buildkite.com/redpanda/redpanda/builds/74304#0199eb55-06a9-41a3-b5f2-51f85989cf4b FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=ClusterRateQuotaTest&test_method=test_client_group_produce_rate_throttle_mechanism
ClusterRateQuotaTest test_client_quota_metrics null integration https://buildkite.com/redpanda/redpanda/builds/74304#0199eb55-06aa-4537-8dee-2f9b735fe090 FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=ClusterRateQuotaTest&test_method=test_client_quota_metrics
ClusterRateQuotaTest test_client_response_and_produce_throttle_mechanism null integration https://buildkite.com/redpanda/redpanda/builds/74304#0199eb55-06ac-4dce-a94b-32d3f4c54f81 FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=ClusterRateQuotaTest&test_method=test_client_response_and_produce_throttle_mechanism
ClusterRateQuotaTest test_client_response_throttle_mechanism null integration https://buildkite.com/redpanda/redpanda/builds/74304#0199eb55-06ae-44d7-83f8-510fd8244b5d FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=ClusterRateQuotaTest&test_method=test_client_response_throttle_mechanism
ClusterRateQuotaTest test_client_response_throttle_mechanism_applies_to_next_request null integration https://buildkite.com/redpanda/redpanda/builds/74304#0199eb55-06af-449d-ae55-1b5d2ef848d9 FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=ClusterRateQuotaTest&test_method=test_client_response_throttle_mechanism_applies_to_next_request
ClusterRateQuotaTest test_throttling_ms_enforcement_is_per_connection null integration https://buildkite.com/redpanda/redpanda/builds/74304#0199eb55-06b1-437f-bee8-faaa5c32aa2c FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=ClusterRateQuotaTest&test_method=test_throttling_ms_enforcement_is_per_connection
CreateTopicsTest test_batch_max_bytes_validation null integration https://buildkite.com/redpanda/redpanda/builds/74304#0199eb55-06b1-437f-bee8-faaa5c32aa2c FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=CreateTopicsTest&test_method=test_batch_max_bytes_validation
test results on build#74342
test_class test_method test_arguments test_kind job_url test_status passed reason test_history
ShadowLinkBasicTests test_rapid_shadow_link_toggling null integration https://buildkite.com/redpanda/redpanda/builds/74342#0199ef16-7418-48f7-b62b-98bb2930820e FLAKY 19/21 upstream reliability is '97.7924944812362'. current run reliability is '90.47619047619048'. drift is 7.3163 and the allowed drift is set to 50. The test should PASS https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=ShadowLinkBasicTests&test_method=test_rapid_shadow_link_toggling
ClusterRateQuotaTest test_client_group_consume_rate_throttle_mechanism null integration https://buildkite.com/redpanda/redpanda/builds/74342#0199ef16-741d-4964-930f-4875a2c5aa6c FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=ClusterRateQuotaTest&test_method=test_client_group_consume_rate_throttle_mechanism
ClusterRateQuotaTest test_client_group_consume_rate_throttle_mechanism null integration https://buildkite.com/redpanda/redpanda/builds/74342#0199ef1e-2edf-40ca-a1b7-567a60fa9bcb FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=ClusterRateQuotaTest&test_method=test_client_group_consume_rate_throttle_mechanism
ClusterRateQuotaTest test_client_group_produce_rate_throttle_mechanism null integration https://buildkite.com/redpanda/redpanda/builds/74342#0199ef16-7416-4a6d-982f-138e8f30da54 FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=ClusterRateQuotaTest&test_method=test_client_group_produce_rate_throttle_mechanism
ClusterRateQuotaTest test_client_group_produce_rate_throttle_mechanism null integration https://buildkite.com/redpanda/redpanda/builds/74342#0199ef1e-2ed4-4680-acc2-d40c56c15dd8 FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=ClusterRateQuotaTest&test_method=test_client_group_produce_rate_throttle_mechanism
ClusterRateQuotaTest test_client_quota_metrics null integration https://buildkite.com/redpanda/redpanda/builds/74342#0199ef16-7417-47a3-bc83-7703e9200725 FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=ClusterRateQuotaTest&test_method=test_client_quota_metrics
ClusterRateQuotaTest test_client_quota_metrics null integration https://buildkite.com/redpanda/redpanda/builds/74342#0199ef1e-2ed5-468a-ac3c-450fdf5d2341 FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=ClusterRateQuotaTest&test_method=test_client_quota_metrics
ClusterRateQuotaTest test_client_response_and_produce_throttle_mechanism null integration https://buildkite.com/redpanda/redpanda/builds/74342#0199ef16-7418-48f7-b62b-98bb2930820e FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=ClusterRateQuotaTest&test_method=test_client_response_and_produce_throttle_mechanism
ClusterRateQuotaTest test_client_response_and_produce_throttle_mechanism null integration https://buildkite.com/redpanda/redpanda/builds/74342#0199ef1e-2ed6-4f0b-ba1e-f6272f20d69e FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=ClusterRateQuotaTest&test_method=test_client_response_and_produce_throttle_mechanism
ClusterRateQuotaTest test_client_response_throttle_mechanism null integration https://buildkite.com/redpanda/redpanda/builds/74342#0199ef16-7418-4461-af1d-85894f674f71 FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=ClusterRateQuotaTest&test_method=test_client_response_throttle_mechanism
ClusterRateQuotaTest test_client_response_throttle_mechanism null integration https://buildkite.com/redpanda/redpanda/builds/74342#0199ef1e-2ed8-4384-b8ba-cfb791ba92de FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=ClusterRateQuotaTest&test_method=test_client_response_throttle_mechanism
ClusterRateQuotaTest test_client_response_throttle_mechanism_applies_to_next_request null integration https://buildkite.com/redpanda/redpanda/builds/74342#0199ef16-7419-462c-9a67-8596e72c874d FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=ClusterRateQuotaTest&test_method=test_client_response_throttle_mechanism_applies_to_next_request
ClusterRateQuotaTest test_client_response_throttle_mechanism_applies_to_next_request null integration https://buildkite.com/redpanda/redpanda/builds/74342#0199ef1e-2ed9-4c86-9e8d-de67d489e005 FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=ClusterRateQuotaTest&test_method=test_client_response_throttle_mechanism_applies_to_next_request
ClusterRateQuotaTest test_throttling_ms_enforcement_is_per_connection null integration https://buildkite.com/redpanda/redpanda/builds/74342#0199ef16-741a-4ee3-b252-1d12459e691d FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=ClusterRateQuotaTest&test_method=test_throttling_ms_enforcement_is_per_connection
ClusterRateQuotaTest test_throttling_ms_enforcement_is_per_connection null integration https://buildkite.com/redpanda/redpanda/builds/74342#0199ef1e-2eda-417c-9b47-aa1e9e02944a FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=ClusterRateQuotaTest&test_method=test_throttling_ms_enforcement_is_per_connection
NodesDecommissioningTest test_decommissioning_cancel_ongoing_movements {"cloud_topic": true} integration https://buildkite.com/redpanda/redpanda/builds/74342#0199ef1e-2ed8-4384-b8ba-cfb791ba92de FLAKY 16/21 upstream reliability is '100.0'. current run reliability is '76.19047619047619'. drift is 23.80952 and the allowed drift is set to 50. The test should PASS https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=NodesDecommissioningTest&test_method=test_decommissioning_cancel_ongoing_movements
NodesDecommissioningTest test_decommissioning_crashed_node {"cloud_topic": true} integration https://buildkite.com/redpanda/redpanda/builds/74342#0199ef16-741a-4ee3-b252-1d12459e691d FLAKY 12/21 upstream reliability is '88.75'. current run reliability is '57.14285714285714'. drift is 31.60714 and the allowed drift is set to 50. The test should PASS https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=NodesDecommissioningTest&test_method=test_decommissioning_crashed_node
NodesDecommissioningTest test_decommissioning_finishes_after_manual_cancellation {"cloud_topic": true, "delete_topic": true} integration https://buildkite.com/redpanda/redpanda/builds/74342#0199ef16-741d-4964-930f-4875a2c5aa6c FLAKY 11/21 upstream reliability is '93.22033898305084'. current run reliability is '52.38095238095239'. drift is 40.83939 and the allowed drift is set to 50. The test should PASS https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=NodesDecommissioningTest&test_method=test_decommissioning_finishes_after_manual_cancellation
NodesDecommissioningTest test_decommissioning_working_node {"cloud_topic": true, "delete_topic": false, "tick_interval": 3600000} integration https://buildkite.com/redpanda/redpanda/builds/74342#0199ef16-7419-462c-9a67-8596e72c874d FLAKY 15/21 upstream reliability is '91.25'. current run reliability is '71.42857142857143'. drift is 19.82143 and the allowed drift is set to 50. The test should PASS https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=NodesDecommissioningTest&test_method=test_decommissioning_working_node
NodesDecommissioningTest test_decommissioning_working_node {"cloud_topic": true, "delete_topic": false, "tick_interval": 3600000} integration https://buildkite.com/redpanda/redpanda/builds/74342#0199ef1e-2ed9-4c86-9e8d-de67d489e005 FLAKY 13/21 upstream reliability is '91.25'. current run reliability is '61.904761904761905'. drift is 29.34524 and the allowed drift is set to 50. The test should PASS https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=NodesDecommissioningTest&test_method=test_decommissioning_working_node
NodesDecommissioningTest test_decommissioning_working_node {"cloud_topic": true, "delete_topic": false, "tick_interval": 5000} integration https://buildkite.com/redpanda/redpanda/builds/74342#0199ef1e-2edc-4bf2-b469-2df2e9915360 FLAKY 12/21 upstream reliability is '88.75'. current run reliability is '57.14285714285714'. drift is 31.60714 and the allowed drift is set to 50. The test should PASS https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=NodesDecommissioningTest&test_method=test_decommissioning_working_node
NodesDecommissioningTest test_decommissioning_working_node {"cloud_topic": true, "delete_topic": true, "tick_interval": 3600000} integration https://buildkite.com/redpanda/redpanda/builds/74342#0199ef16-741c-42cd-ba46-ce625efb0fea FLAKY 14/21 upstream reliability is '84.0'. current run reliability is '66.66666666666666'. drift is 17.33333 and the allowed drift is set to 50. The test should PASS https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=NodesDecommissioningTest&test_method=test_decommissioning_working_node
NodesDecommissioningTest test_flipping_decommission_recommission {"cloud_topic": true, "node_is_alive": true} integration https://buildkite.com/redpanda/redpanda/builds/74342#0199ef1e-2ed9-4c86-9e8d-de67d489e005 FLAKY 11/21 upstream reliability is '90.0'. current run reliability is '52.38095238095239'. drift is 37.61905 and the allowed drift is set to 50. The test should PASS https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=NodesDecommissioningTest&test_method=test_flipping_decommission_recommission
NodesDecommissioningTest test_multiple_decommissions {"cloud_topic": true} integration https://buildkite.com/redpanda/redpanda/builds/74342#0199ef1e-2edd-4e8b-b07d-bb22d8aac257 FLAKY 9/21 upstream reliability is '63.51351351351351'. current run reliability is '42.857142857142854'. drift is 20.65637 and the allowed drift is set to 50. The test should PASS https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=NodesDecommissioningTest&test_method=test_multiple_decommissions
NodesDecommissioningTest test_recommissioning_do_not_stop_all_moves_node {"cloud_topic": true} integration https://buildkite.com/redpanda/redpanda/builds/74342#0199ef1e-2ed8-4384-b8ba-cfb791ba92de FLAKY 15/21 upstream reliability is '76.85950413223141'. current run reliability is '71.42857142857143'. drift is 5.43093 and the allowed drift is set to 50. The test should PASS https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=NodesDecommissioningTest&test_method=test_recommissioning_do_not_stop_all_moves_node
NodesDecommissioningTest test_recommissioning_node {"cloud_topic": true} integration https://buildkite.com/redpanda/redpanda/builds/74342#0199ef1e-2eda-417c-9b47-aa1e9e02944a FLAKY 12/21 upstream reliability is '84.0'. current run reliability is '57.14285714285714'. drift is 26.85714 and the allowed drift is set to 50. The test should PASS https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=NodesDecommissioningTest&test_method=test_recommissioning_node
NodesDecommissioningTest test_recommissioning_node_finishes {"cloud_topic": true} integration https://buildkite.com/redpanda/redpanda/builds/74342#0199ef16-741b-4d40-a37c-ae1216147332 FLAKY 15/21 upstream reliability is '100.0'. current run reliability is '71.42857142857143'. drift is 28.57143 and the allowed drift is set to 50. The test should PASS https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=NodesDecommissioningTest&test_method=test_recommissioning_node_finishes
test results on build#74465
test_class test_method test_arguments test_kind job_url test_status passed reason test_history
ShadowLinkBasicTests test_rapid_shadow_link_toggling null integration https://buildkite.com/redpanda/redpanda/builds/74465#0199f4fa-68df-4f16-b7b2-db45528476bd FAIL 0/21 The test has failed across all retries https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=ShadowLinkBasicTests&test_method=test_rapid_shadow_link_toggling
ShadowLinkingReplicationTests test_replication_basic {"shuffle_leadership": true, "source_cluster_spec": {"cluster_type": "redpanda"}} integration https://buildkite.com/redpanda/redpanda/builds/74465#0199f504-045c-4c6f-8a47-8851227869e5 FLAKY 16/21 upstream reliability is '95.29411764705881'. current run reliability is '76.19047619047619'. drift is 19.10364 and the allowed drift is set to 50. The test should PASS https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=ShadowLinkingReplicationTests&test_method=test_replication_basic
WriteCachingFailureInjectionTest test_unavoidable_data_loss null integration https://buildkite.com/redpanda/redpanda/builds/74465#0199f504-045c-4c6f-8a47-8851227869e5 FLAKY 19/21 upstream reliability is '91.17647058823529'. current run reliability is '90.47619047619048'. drift is 0.70028 and the allowed drift is set to 50. The test should PASS https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=WriteCachingFailureInjectionTest&test_method=test_unavoidable_data_loss
test results on build#74502
test_class test_method test_arguments test_kind job_url test_status passed reason test_history
AuditLogTestKafkaApi test_no_auth_enabled {"audit_transport_mode": "rpc"} integration https://buildkite.com/redpanda/redpanda/builds/74502#019a0004-407d-446c-b577-02f59e40c8da FLAKY 19/21 upstream reliability is '100.0'. current run reliability is '90.47619047619048'. drift is 9.52381 and the allowed drift is set to 50. The test should PASS https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=AuditLogTestKafkaApi&test_method=test_no_auth_enabled
ShadowLinkingReplicationTests test_replication_with_failures null integration https://buildkite.com/redpanda/redpanda/builds/74502#019a0004-407e-49b2-8ddf-a0e93eb77f77 FLAKY 7/21 upstream reliability is '70.3023758099352'. current run reliability is '33.33333333333333'. drift is 36.96904 and the allowed drift is set to 50. The test should PASS https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=ShadowLinkingReplicationTests&test_method=test_replication_with_failures
ShadowLinkingReplicationTests test_replication_with_failures null integration https://buildkite.com/redpanda/redpanda/builds/74502#019a0004-cdde-409d-9153-191457d915de FLAKY 6/21 upstream reliability is '70.3344120819849'. current run reliability is '28.57142857142857'. drift is 41.76298 and the allowed drift is set to 50. The test should PASS https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=ShadowLinkingReplicationTests&test_method=test_replication_with_failures
NodesDecommissioningTest test_decommissioning_finishes_after_manual_cancellation {"cloud_topic": false, "delete_topic": false} integration https://buildkite.com/redpanda/redpanda/builds/74502#019a0004-4078-40e4-b398-c5b9894855c3 FLAKY 19/21 upstream reliability is '100.0'. current run reliability is '90.47619047619048'. drift is 9.52381 and the allowed drift is set to 50. The test should PASS https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=NodesDecommissioningTest&test_method=test_decommissioning_finishes_after_manual_cancellation

@ballard26
Copy link
Copy Markdown
Contributor Author

/ci-repeat 1

Comment on lines +1802 to +1803
"Maximum size the server accepts for the `max.message.size` topic "
"property. If `null`, then no limit is enforced.",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
"Maximum size the server accepts for the `max.message.size` topic "
"property. If `null`, then no limit is enforced.",
"Maximum allowed value for the `max.message.size` topic "
"property. When set to `null`, no limit is enforced.",

std::nullopt)
, kafka_max_message_size_upper_limit(
*this,
"kafka_max_message_size_upper_limit",
Copy link
Copy Markdown
Contributor

@paulohtb6 paulohtb6 Oct 11, 2025

Choose a reason for hiding this comment

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

suggest to rename the property with a suffix on the unit that is being used (bytes, kilobytes, megabytes etc)

"Maximum allowed value for the `max.message.size` topic "
"property. When set to `null`, then no limit is enforced.",
{.needs_restart = needs_restart::no, .visibility = visibility::tunable},
100_MiB,
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.

Changed this from no default to 100MiB as it matches the max size kafka request Redpanda will process by default. And therefore around what the max batch size could be.

@vbotbuildovich
Copy link
Copy Markdown
Collaborator

vbotbuildovich commented Oct 16, 2025

Retry command for Build#74304

please wait until all jobs are finished before running the slash command

/ci-repeat 1
tests/rptest/tests/cluster_quota_test.py::ClusterRateQuotaTest.test_client_response_and_produce_throttle_mechanism
tests/rptest/tests/cluster_quota_test.py::ClusterRateQuotaTest.test_client_quota_metrics
tests/rptest/tests/cluster_quota_test.py::ClusterRateQuotaTest.test_client_response_throttle_mechanism
tests/rptest/tests/cluster_quota_test.py::ClusterRateQuotaTest.test_throttling_ms_enforcement_is_per_connection
tests/rptest/tests/topic_creation_test.py::CreateTopicsTest.test_batch_max_bytes_validation
tests/rptest/tests/cluster_quota_test.py::ClusterRateQuotaTest.test_client_group_produce_rate_throttle_mechanism
tests/rptest/tests/alter_topic_configuration_test.py::AlterTopicConfiguration.test_batch_max_bytes_validation
tests/rptest/tests/cluster_quota_test.py::ClusterRateQuotaTest.test_client_response_throttle_mechanism_applies_to_next_request
tests/rptest/tests/cluster_quota_test.py::ClusterRateQuotaTest.test_client_group_consume_rate_throttle_mechanism

@ballard26 ballard26 force-pushed the max-message-bytes-limits branch from de94a64 to a280111 Compare October 16, 2025 21:23
@ballard26
Copy link
Copy Markdown
Contributor Author

The test failures in cluster_quota_test.py will be fixed by #28082

@ballard26 ballard26 force-pushed the max-message-bytes-limits branch from a280111 to 23b645a Compare October 20, 2025 04:26
@redpanda-data redpanda-data deleted a comment from vbotbuildovich Oct 20, 2025
@redpanda-data redpanda-data deleted a comment from vbotbuildovich Oct 20, 2025
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: commit message should say cluster config

@ballard26 ballard26 merged commit 9f68297 into redpanda-data:dev Oct 20, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants