-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: implement configuration profiles #436
base: main
Are you sure you want to change the base?
Conversation
c4880b1
to
91ff230
Compare
c721c6f
to
6933c4f
Compare
def init_host_provider(self, props: Properties, host_list_provider_service: HostListProviderService, init_host_provider_func: Callable): | ||
self._host_list_provider_service = host_list_provider_service | ||
if host_list_provider_service.is_static_host_list_provider(): | ||
raise AwsWrapperError(Messages.get("AuroraInitialConnectionStrategyPlugin.RequireDynamicProvider")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be also log the error with the logger here?
6933c4f
to
46e2a54
Compare
"random") | ||
|
||
OPEN_CONNECTION_RETRY_TIMEOUT_MS = WrapperProperty("open_connection_retry_timeout_ms", | ||
"Maximum allowed time for the retries opening a connection.", 30_000) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maximum allowed time in milliseconds for the retries opening a connection.
46e2a54
to
ad3d3d1
Compare
e5816eb
to
0cf3aaf
Compare
@@ -25,6 +25,9 @@ AdfsCredentialsProviderFactory.SignOnPagePostActionRequestFailed=[AdfsCredential | |||
AdfsCredentialsProviderFactory.SignOnPageRequestFailed=[AdfsCredentialsProviderFactory] ADFS SignOn Page Request Failed with HTTP status '{}', reason phrase '{}', and response '{}' | |||
AdfsCredentialsProviderFactory.SignOnPageUrl=[AdfsCredentialsProviderFactory] ADFS SignOn URL: '{}' | |||
|
|||
AuroraInitialConnectionStrategyPlugin.UnsupportedStrategy=Unsupported host selection strategy '{}'. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AuroraInitialConnectionStrategyPlugin.UnsupportedStrategy=Unsupported host selection strategy '{}'. | |
AuroraInitialConnectionStrategyPlugin.UnsupportedStrategy=[AuroraInitialConnectionStrategyPlugin] Unsupported host selector strategy '{}'. |
@@ -25,6 +25,9 @@ AdfsCredentialsProviderFactory.SignOnPagePostActionRequestFailed=[AdfsCredential | |||
AdfsCredentialsProviderFactory.SignOnPageRequestFailed=[AdfsCredentialsProviderFactory] ADFS SignOn Page Request Failed with HTTP status '{}', reason phrase '{}', and response '{}' | |||
AdfsCredentialsProviderFactory.SignOnPageUrl=[AdfsCredentialsProviderFactory] ADFS SignOn URL: '{}' | |||
|
|||
AuroraInitialConnectionStrategyPlugin.UnsupportedStrategy=Unsupported host selection strategy '{}'. | |||
AuroraInitialConnectionStrategyPlugin.RequireDynamicProvider=Dynamic host list provider is required. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AuroraInitialConnectionStrategyPlugin.RequireDynamicProvider=Dynamic host list provider is required. | |
AuroraInitialConnectionStrategyPlugin.RequireDynamicProvider=[AuroraInitialConnectionStrategyPlugin] Dynamic host list provider is required. |
|
||
OPEN_CONNECTION_RETRY_TIMEOUT_MS = WrapperProperty("open_connection_retry_timeout_ms", | ||
"Maximum allowed time in milliseconds for the retries opening a connection.", 30_000) | ||
OPEN_CONNECTION_RETRY_INTERVAL_MS = WrapperProperty("open_connection_retry_interval_ms", "Time between each retry of opening a connection.", 1000) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OPEN_CONNECTION_RETRY_INTERVAL_MS = WrapperProperty("open_connection_retry_interval_ms", "Time between each retry of opening a connection.", 1000) | |
OPEN_CONNECTION_RETRY_INTERVAL_MS = WrapperProperty("open_connection_retry_interval_ms", "Time in milliseconds between each retry of opening a connection.", 1000) |
msg = Messages.get("AuroraInitialConnectionStrategyPlugin.RequireDynamicProvider") | ||
logger.warning(msg) | ||
raise AwsWrapperError(msg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
msg = Messages.get("AuroraInitialConnectionStrategyPlugin.RequireDynamicProvider") | |
logger.warning(msg) | |
raise AwsWrapperError(msg) | |
msg = "AuroraInitialConnectionStrategyPlugin.RequireDynamicProvider" | |
logger.warning(msg) | |
raise AwsWrapperError(Messages.get(msg)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved with a few minor comments
Description
Implement
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.