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

mz: faster feedback on invalid region names #27902

Conversation

RobinClowers
Copy link
Contributor

I fat-fingered the region name, and mz appeared stuck saying "Retrieving information". After looking at the code I realized it was retrying the request with backoff. This behavior is important for the actual disable request, but the region fetch should fail fast. I also updated the error message and names of functions and the error enum to be more clear.

Motivation

  • This PR fixes a previously unreported bug.

Tips for reviewer

First mz contribution, all feedback appreciated!

Checklist

  • This PR has adequate test coverage / QA involvement has been duly considered. (trigger-ci for additional test/nightly runs)
  • This PR has an associated up-to-date design doc, is a design doc (template), or is sufficiently small to not require a design.
  • If this PR evolves an existing $T ⇔ Proto$T mapping (possibly in a backwards-incompatible way), then it is tagged with a T-proto label.
  • If this PR will require changes to cloud orchestration or tests, there is a companion cloud PR to account for those changes that is tagged with the release-blocker label (example).
  • This PR includes the following user-facing behavior changes:
    • No user facing changes

@RobinClowers RobinClowers requested a review from a team as a code owner June 26, 2024 17:42
Copy link
Contributor

@bobbyiliev bobbyiliev left a comment

Choose a reason for hiding this comment

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

LGTM! 👏

@RobinClowers RobinClowers force-pushed the mz-better-error-for-invalid-region branch from b3b1e20 to 484e927 Compare June 26, 2024 17:54
@RobinClowers RobinClowers changed the title mz: don't retry the region fetch mz: don't retry region fetch Jun 26, 2024
@RobinClowers RobinClowers changed the title mz: don't retry region fetch mz: faster feedback on invalid region names Jun 26, 2024
@RobinClowers RobinClowers merged commit 06aa834 into MaterializeInc:main Jun 26, 2024
14 checks passed
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