Skip to content

Conversation

@sergiyvamz
Copy link
Contributor

Summary

Add connect exception handling to IAM plugin

Additional Reviewers

@karenc-bq
@aaron-congo
@hsuamz
@aaronchung-bitquill

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

return connectFunc.call();
} catch (final SQLException exception) {

LOGGER.finest(
Copy link
Contributor

@aaronchung-bitquill aaronchung-bitquill May 19, 2023

Choose a reason for hiding this comment

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

Nitpick: Would it also be worth logging the token as well? Or not necessary?

Comment on lines +168 to +169
if (!this.pluginService.isLoginException(exception) || !isCachedToken) {
throw exception;
Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed with Aaron, can we log the token and isCachedToken if it is a login exception. Would be beneficial for debugging purposes

@karenc-bq karenc-bq merged commit c4c9ae2 into main May 21, 2023
@karenc-bq karenc-bq deleted the iam-login-errors branch May 21, 2023 18:21
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.

4 participants