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

Introduce constants to BaseJdbcConfig #14657

Merged
merged 2 commits into from
Oct 19, 2022

Conversation

tangjiangling
Copy link
Member

Description

The configuration metadata.cache-ttl and metadata.cache-maximum-size
are used in the exception message of BaseJdbcConfig#validate, so it is
better to use constants to avoid the problem that the configuration is
not synchronized with the exception message.

Release notes

(x) This is not user-visible or docs only and no release notes are required.

@cla-bot cla-bot bot added the cla-signed label Oct 17, 2022
@tangjiangling tangjiangling changed the title Introduce constants Introduce constants to BaseJdbcConfig Oct 17, 2022
@tangjiangling tangjiangling added the no-release-notes This pull request does not require release notes entry label Oct 17, 2022
@tangjiangling
Copy link
Member Author

Reverted and squashed commits.

Copy link
Member

@hashhar hashhar left a comment

Choose a reason for hiding this comment

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

LGTM % comment. 😄

The configuration `metadata.cache-ttl` and `metadata.cache-maximum-size`
are used in the exception message of `BaseJdbcConfig#validate`, so it is
better to use constants to avoid the problem that the configuration is
not synchronized with the exception message.
@tangjiangling
Copy link
Member Author

AC

@hashhar hashhar merged commit 077a1b2 into trinodb:master Oct 19, 2022
@tangjiangling tangjiangling deleted the introduce-constants branch October 19, 2022 07:42
@github-actions github-actions bot added this to the 401 milestone Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed no-release-notes This pull request does not require release notes entry
Development

Successfully merging this pull request may close these issues.

3 participants