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

Handle errors while producing backup restoration messages #543

Merged
merged 1 commit into from
Feb 15, 2023

Conversation

giuseppelillo
Copy link
Contributor

@giuseppelillo giuseppelillo commented Feb 14, 2023

About this change - What it does

Backup restoration messages that are produced to the restored topic are currently sent in a fire-and-forget fashion. This PR modifies this behaviour, waiting for the produce action to complete and raising an error if the send was not successful.

Why this way

An error is raised if the produce action was not successful, allowing the caller to know that something went wrong.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 14, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: a543250
Status: ✅  Deploy successful!
Preview URL: https://a58ebe8e.karapace.pages.dev
Branch Preview URL: https://giuseppelillo-restore-backup.karapace.pages.dev

View logs

@giuseppelillo giuseppelillo changed the title Log from cli Handle errors while producing backup restoration messages Feb 14, 2023
@giuseppelillo giuseppelillo force-pushed the giuseppelillo/restore-backup-message-error-handling branch from 122ad8f to a742d84 Compare February 14, 2023 16:31
@giuseppelillo giuseppelillo force-pushed the giuseppelillo/restore-backup-message-error-handling branch from a742d84 to a543250 Compare February 14, 2023 16:36
@giuseppelillo giuseppelillo marked this pull request as ready for review February 14, 2023 17:01
@giuseppelillo giuseppelillo requested review from a team as code owners February 14, 2023 17:01
@tvainika tvainika merged commit 29b65dc into main Feb 15, 2023
@tvainika tvainika deleted the giuseppelillo/restore-backup-message-error-handling branch February 15, 2023 08:55
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