Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v24.3.x] Add compression type metric #25391

Merged
merged 5 commits into from
Mar 17, 2025

Conversation

travisdowns
Copy link
Member

@travisdowns travisdowns commented Mar 14, 2025

Backport of PR #25340

Fixes #25384.

... kafka_probe. Instead of using public accessor functions for
internals, make the fixture that needs this access a friend. This limits
the exposure of internal to that fixture only (though of course that
fixture now has more access, if it was feeling naughty) and avoids
adding accessor methods to the non-test code for each thing we need to
access.

This is done in anticipation of a test later in this series also
needing access to internals of the probe, via the fixture.

(cherry picked from commit 7a7ab0f)
Move two large functions from .h to .cc. Also, remove some unused
headers.

(cherry picked from commit aabdddd)
Allow the produce methods of produce_consume_utils to specify a
compression type. This defaults to none (the existing behavior) if not
specified.

(cherry picked from commit 6fe03e9)
Add a constexpr array of all the compression modes applicable to batch
compression, so that we can loop over it or whatever we want. We can
only hold our breath that C++35 will offer something like this
built-in.

Testing:

Add some static asserts that the array of all compression types is
as expected (count member, front and back) and that all compression
types roundtrip through `fmt::format` and lexical_cast as expected.

(cherry picked from commit 40239e4)
@travisdowns travisdowns added this to the v24.3.x-next milestone Mar 14, 2025
@travisdowns travisdowns added the kind/backport PRs targeting a stable branch label Mar 14, 2025
@travisdowns
Copy link
Member Author

/dt

Add a compression type metric which records the cumulative size of all
bytes produced with a given compression type. This will help us
evaluate the prevalence of compression in the wild and which types are
being used.

(cherry picked from commit a00f277)
@travisdowns travisdowns force-pushed the manual-backport-25340-v24.3.x-690 branch from 8f2330c to 0c61ac6 Compare March 14, 2025 20:52
@travisdowns
Copy link
Member Author

/dt

@travisdowns travisdowns marked this pull request as ready for review March 15, 2025 00:58
@vbotbuildovich
Copy link
Collaborator

vbotbuildovich commented Mar 15, 2025

CI test results

test results on build#63186
test_id test_kind job_url test_status passed
rptest.tests.archive_retention_test.CloudArchiveRetentionTest.test_delete.cloud_storage_type=CloudStorageType.S3.retention_type=retention.bytes ducktape https://buildkite.com/redpanda/redpanda/builds/63186#01959793-0261-475e-995f-4b7b889f4b4c FLAKY 1/2
rptest.tests.compaction_recovery_test.CompactionRecoveryTest.test_index_recovery ducktape https://buildkite.com/redpanda/redpanda/builds/63186#01959793-0260-4ae5-b2af-f3f3270db4f2 FLAKY 1/4
rptest.tests.data_migrations_api_test.DataMigrationsApiTest.test_creating_and_listing_migrations ducktape https://buildkite.com/redpanda/redpanda/builds/63186#019597af-b908-4a77-ba7f-d7c8e8220b71 FLAKY 1/2
test results on build#63187
test_id test_kind job_url test_status passed
rptest.tests.archive_retention_test.CloudArchiveRetentionTest.test_delete.cloud_storage_type=CloudStorageType.S3.retention_type=retention.bytes ducktape https://buildkite.com/redpanda/redpanda/builds/63187#01959793-85aa-49a9-85d1-679989e9914c FLAKY 1/2
rptest.tests.cloud_storage_timing_stress_test.CloudStorageTimingStressTest.test_cloud_storage.cleanup_policy=compact.delete ducktape https://buildkite.com/redpanda/redpanda/builds/63187#019597b0-1db5-40af-a886-e642865009a7 FLAKY 1/2
rptest.tests.data_migrations_api_test.DataMigrationsApiTest.test_creating_and_listing_migrations ducktape https://buildkite.com/redpanda/redpanda/builds/63187#019597b0-1db5-40af-a886-e642865009a7 FLAKY 1/2
rptest.tests.data_migrations_api_test.DataMigrationsApiTest.test_migrated_topic_data_integrity.transfer_leadership=True.params=.cancellation.None.use_alias.False ducktape https://buildkite.com/redpanda/redpanda/builds/63187#01959793-85aa-49a9-85d1-679989e9914c FLAKY 1/2

Copy link
Contributor

@michael-redpanda michael-redpanda left a comment

Choose a reason for hiding this comment

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

See no issues backporting this

@travisdowns travisdowns merged commit 5880ab5 into v24.3.x Mar 17, 2025
16 checks passed
@travisdowns travisdowns deleted the manual-backport-25340-v24.3.x-690 branch March 17, 2025 19:18
@piyushredpanda piyushredpanda modified the milestones: v24.3.x-next, v24.3.8 Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants