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

[v23.1.x] cluster/topics_frontend: Move some topic preprocessing into create_topics #13852

Conversation

oleiman
Copy link
Member

@oleiman oleiman commented Oct 1, 2023

Backport of PR #13657
Fixes #13846

@oleiman oleiman added this to the v23.1.x-next milestone Oct 1, 2023
@oleiman oleiman added the kind/backport PRs targeting a stable branch label Oct 1, 2023
@mergify
Copy link

mergify bot commented Oct 1, 2023

⚠️ The sha of the head commit of this PR conflicts with #13849. Mergify cannot evaluate rules on this PR. ⚠️

@oleiman oleiman marked this pull request as ready for review October 1, 2023 19:50
@oleiman oleiman marked this pull request as draft October 1, 2023 22:54
Adds `shadow_indexing` and `cleanup_policy_bitflags` default fallback to
`create_topics`.

Also plumbs the `metadata_cache` down into `topics_frontend` for this
purpose, and in case we need to add more property fallbacks in the future.

This commit also relaxes an assertion in a fixture test [1] to account for
some additional requests during topic recovery when the test topic has
cloud storage switched on.

[1] `cloud_storage_rpfixture::topic_recovery_service_test.recovery_with_existing_topic`

(cherry picked from commit c417dba)
@oleiman oleiman force-pushed the vbotbuildovich/backport-13657-v23.1.x-319 branch from cc937a6 to d9a38bc Compare October 1, 2023 23:18
@oleiman
Copy link
Member Author

oleiman commented Oct 2, 2023

I think this backport is ill-formed... @andijcr can you confirm?

@andijcr
Copy link
Contributor

andijcr commented Oct 2, 2023

I think this backport is ill-formed... @andijcr can you confirm?

seems like the error is AttributeError: 'Admin' object has no attribute 'get_partition_cloud_storage_status' and it makes sense, the underlying endpoint was added in v23.2 or later. I think you can just delete that part of the test, since we tested on dev that this works

@oleiman
Copy link
Member Author

oleiman commented Oct 2, 2023

you can just delete that part of the test

Sounds good. Wasn't sure how invasive a backport cherry-pick should be. Better to have the fix than not I suppose.

@oleiman oleiman force-pushed the vbotbuildovich/backport-13657-v23.1.x-319 branch from d9a38bc to e13c0af Compare October 2, 2023 15:26
@oleiman oleiman marked this pull request as ready for review October 2, 2023 17:29
@piyushredpanda
Copy link
Contributor

/ci-repeat 1

@piyushredpanda piyushredpanda merged commit 1082cd1 into redpanda-data:v23.1.x Oct 6, 2023
15 checks passed
@BenPope BenPope modified the milestones: v23.1.x-next, v23.1.19 Oct 10, 2023
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.

4 participants