-
Notifications
You must be signed in to change notification settings - Fork 602
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
When topics are created via auto-create Tiered storage is not enabled correctly #13492
Comments
this seems to be also in dev. I am able to confirm that via rpk describe topic config, both auto-created and manually-created topics are almost the same
The only difference is {'cleanup.policy': ('delete', 'DYNAMIC_TOPIC_CONFIG') for the manually created topic and {'cleanup.policy': ('delete', 'DEFAULT_CONFIG'), for the automatic topic. cloud_storage/status API endpoint returns a different story:
cloud_storage_mode disabled vs cloud_storage_mode full. I am trying to find the difference in codepath. In theory, if the produce request is done to the non-leader of the cluster, this bug should not appear because the follower, instead of creating the topic on itself sends to the controller leader a standard create topic request. |
PR to fix this behavior is up, but will likely need some further work to land in |
Version & Environment
23.2.8
What went wrong?
If a cluster is configured so that cloud storage is enabled correctly ...
per https://docs.redpanda.com/current/manage/tiered-storage/#set-up-tiered-storage
and it defaults so that new topics are created with TS enabled
e.g
if topics created via CLI/console.. topics work as expected in that segments are uploaded to cloud storage +
rpk topic describe-storage
shows the topic asCLOUD-STORAGE-MODE =full
if the topic is created via the "auto-create" mechanism
https://docs.redpanda.com/current/manage/tiered-storage/#set-up-tiered-storage
then
rpk topic describe-storage' shows
CLOUD-STORAGE-MODE disabled`which is incorrect and means segments are not uploaded to cloud..
What should have happened instead?
topics created via auto-create mechanism should have TS enabled correctly ....
How to reproduce the issue?
rpk cluster config set auto_create_topics_enabled true
rpk topic create plonky
rpk topic describe-storage plonky
showsCLOUD-STORAGE-MODE =full
(as expected)and
rpk topic describe plonky
shows
rpk topic produce plonky2 --allow-auto-topic-creation
rpk topic describe-storage plonky2' shows
CLOUD-STORAGE-MODE disabled(not expected..bug) and
rpk topic describe plonky2`shows
Additional information
Please attach any relevant logs, backtraces, or metric charts.
The text was updated successfully, but these errors were encountered: