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

[vdk-plugin] vdk-impala: Make error retries and backoff configurable #2509

Merged
merged 2 commits into from
Aug 2, 2023

Conversation

doks5
Copy link
Contributor

@doks5 doks5 commented Aug 2, 2023

Currently, the retries and backoff seconds are hard-coded in the ImpalaErrorHandler, which is not ideal, as there might be users who want to have specific values for these properties.

This change adds two new configuration variables, IMPALA_RETRIES_ON_ERROR and IMPALA_ERROR_BACKOFF_SECONDS, which are to be used for configuring how many times a failed query is to be retried, and how big the backoff should be.

Currently, the retries and backoff seconds are hard-coded in the ImpalaErrorHandler, which
is not ideal, as there might be users who want to have specific values for these properties.

This change adds two new configuration variables, `IMPALA_RETRIES_ON_ERROR` and `IMPALA_ERROR_BACKOFF_SECONDS`,
which are to be used for configuring how many times a failed query is to be retried, and how big the backoff
should be.

Signed-off-by: Andon Andonov <andonova@vmware.com>
Copy link
Collaborator

@antoniivanov antoniivanov left a comment

Choose a reason for hiding this comment

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

Looks ok, I think we can improve the naming and the description

@doks5 doks5 force-pushed the person/andonova/vdk-impala-config branch from ff80171 to 9e92311 Compare August 2, 2023 14:23
…onfiguration.py

Co-authored-by: Antoni Ivanov <aivanov@vmware.com>
@doks5 doks5 force-pushed the person/andonova/vdk-impala-config branch from 9e92311 to 34cba0f Compare August 2, 2023 14:51
@doks5 doks5 merged commit 1180bbd into main Aug 2, 2023
9 checks passed
@doks5 doks5 deleted the person/andonova/vdk-impala-config branch August 2, 2023 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants