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

cloud_storage: re-adopt topic_manifest #19666

Merged
merged 3 commits into from
Jun 12, 2024

Conversation

andrwng
Copy link
Contributor

@andrwng andrwng commented Jun 11, 2024

First, moves topic configuration out of types.h.

The file is huge and means that we are required to include v_cluster if
we want to use the topic_manifest which just serializes the topic
properties.

Now that topic_properties don't depend on the rest of types.h, this
commit introduces a new v_cluster_topic_properties that cloud_storage
can depend on without introducing a circular dependency. With this in
hand, this commit pull topic_manifest back into v_cloud_storage.

The motivation here is that I have some upcoming changes for downloading
topic manifests that feel much more natural being in v_cloud_storage.

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
  • v24.1.x
  • v23.3.x
  • v23.2.x

Release Notes

  • none

The file is huge and means that we are required to include v_cluster if
we want to use the topic_manifest which just serializes the topic
properties.

This commit moves properties to their own file. A subsequent commit will
make it its own independent library.
@vbotbuildovich
Copy link
Collaborator

vbotbuildovich commented Jun 11, 2024

new failures in https://buildkite.com/redpanda/redpanda/builds/50129#0190095e-9bed-4d82-8181-4144f1b198ee:

"rptest.tests.e2e_shadow_indexing_test.EndToEndThrottlingTest.test_throttling.cloud_storage_type=CloudStorageType.ABS"

new failures in https://buildkite.com/redpanda/redpanda/builds/50151#01900b48-691c-4efb-93d3-fe7fd572d4bb:

"rptest.tests.e2e_shadow_indexing_test.EndToEndThrottlingTest.test_throttling.cloud_storage_type=CloudStorageType.ABS"

new failures in https://buildkite.com/redpanda/redpanda/builds/50151#01900bba-fff1-4c31-a003-90c278a4f0c6:

"rptest.tests.e2e_shadow_indexing_test.EndToEndThrottlingTest.test_throttling.cloud_storage_type=CloudStorageType.ABS"

@andrwng
Copy link
Contributor Author

andrwng commented Jun 11, 2024

CI failure: #14225

dotnwat
dotnwat previously approved these changes Jun 12, 2024
Copy link
Member

@dotnwat dotnwat left a comment

Choose a reason for hiding this comment

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

lgtm

Comment on lines -220 to -222
../cloud_storage/topic_manifest.cc
HDRS
../cloud_storage/topic_manifest.h
Copy link
Member

Choose a reason for hiding this comment

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

ah cool

This pulls out topic configuration out of types.h so it can more easily
be depended on. I intend to have cloud_storage depend on just the topic
configuration so the manifest code can move back into v_cloud_storage.
Now that topic_properties don't depend on the rest of types.h, this
commit introduces a new v_cluster_topic_properties that cloud_storage
can depend on without introducing a circular dependency. With this in
hand, this commit pull topic_manifest back into v_cloud_storage.

The motivation here is that I have some upcoming changes for downloading
topic manifests that feel much more natural being in v_cloud_storage.
@andrwng andrwng force-pushed the cluster-topic-properties branch from d617040 to c730b83 Compare June 12, 2024 06:00
@andrwng andrwng requested a review from dotnwat June 12, 2024 06:00
@andrwng andrwng merged commit b9d66b7 into redpanda-data:dev Jun 12, 2024
18 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.

4 participants