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

Support setting Kafka tiered storage topic configs #363

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

ivanyu
Copy link
Member

@ivanyu ivanyu commented Sep 15, 2023

remote.storage.enable, local.retention.ms, local.retention.bytes.

`remote.storage.enable`, `local.retention.ms`, `local.retention.bytes`.
@ivanyu ivanyu marked this pull request as ready for review September 15, 2023 13:41
@ivanyu ivanyu requested review from a team as code owners September 15, 2023 13:41
Copy link
Contributor

@eliax1996 eliax1996 left a comment

Choose a reason for hiding this comment

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

LGTM, are negative numbers a problem? Should we guard against that?

tags=tags,
)
print(response["message"])

def _remote_storage_enable(self) -> bool | None:
if self.args.remote_storage_enable and self.args.remote_storage_disable:
raise argx.UserError("Only set at most one of --remote-storage-enable and --remote-storage-disable")
Copy link
Contributor

Choose a reason for hiding this comment

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

Schrödinger remote storage mode on 😄

Copy link
Contributor

Choose a reason for hiding this comment

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

In this case probably isn't worth but we could always add a param to the annotation to do something like the following in case of N mutually exclusive options:

group = parser.add_mutually_exclusive_group()
group.add_argument('-a', action='store_true')
group.add_argument('-b', action='store_true')

@ivanyu
Copy link
Member Author

ivanyu commented Sep 15, 2023

are negative numbers a problem? Should we guard against that?

I think not. -1 and -2 are valid and we rely on the backend to guard against the others.

@eliax1996 eliax1996 merged commit 6f0b697 into main Sep 15, 2023
25 checks passed
@eliax1996 eliax1996 deleted the ivanyu/kafka-topic-tiered-storage branch September 15, 2023 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants