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

Pause KeeperMap tables using read-only setting #261

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

aris-aiven
Copy link
Contributor

Emitting a "table is read-only" is more precise
and is already handled by Kafka Sink Connector
for ClickHouse.

@aris-aiven aris-aiven marked this pull request as ready for review November 18, 2024 01:14
@aris-aiven aris-aiven marked this pull request as draft November 18, 2024 11:15
@aris-aiven aris-aiven force-pushed the aris-keeper-map-read-only branch from f02b89b to 3f13739 Compare November 18, 2024 13:50
Emitting a "table is read-only" is more precise
and is already handled by Kafka Sink Connector
for ClickHouse.
@aris-aiven aris-aiven force-pushed the aris-keeper-map-read-only branch from 3f13739 to 80b4c8a Compare November 18, 2024 13:53
@aris-aiven aris-aiven marked this pull request as ready for review November 18, 2024 13:57
@aris-aiven aris-aiven requested a review from a team November 18, 2024 13:57
@aris-aiven aris-aiven marked this pull request as draft November 18, 2024 20:07
@aris-aiven aris-aiven marked this pull request as ready for review November 19, 2024 16:31
Copy link
Contributor

@tilman-aiven tilman-aiven left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -257,7 +254,7 @@ async def run_step(self, cluster: Cluster, context: StepsContext) -> Sequence[Ke

async def handle_step_failure(self, cluster: Cluster, context: StepsContext) -> None:
try:
await KeeperMapTablesReadOnlyStep(clients=self.clients, allow_writes=True).run_step(cluster, context)
await KeeperMapTablesReadOnlyStep(self.clients).run_step(cluster, context)
Copy link
Contributor

Choose a reason for hiding this comment

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

for visibility: this is rephrased from allow_writes=True to _is_read_only=False

@tilman-aiven tilman-aiven merged commit 9b4c6fc into main Nov 20, 2024
2 checks passed
@tilman-aiven tilman-aiven deleted the aris-keeper-map-read-only branch November 20, 2024 12:43
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