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

Amazon S3 Batch Source Plugin: Add validation for incorrect credentials #1

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

sgarg-CS
Copy link
Collaborator

@sgarg-CS sgarg-CS commented Sep 8, 2023

No description provided.

Copy link

@anup-cloudsufi anup-cloudsufi left a comment

Choose a reason for hiding this comment

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

Add a unit test also.

s3.listBuckets();
} catch (AmazonS3Exception exception) {
collector.addFailure(String.format("Invalid credentials: %s.", exception.getMessage()),
"Please provide valid credentials.").withStacktrace(exception.getStackTrace());

Choose a reason for hiding this comment

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

is it a common practice to add stackTrace in failureCollectors or adding stackTrace will only show in logs and not in UI.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, Albert suggested including the stack trace to the failure collector in order to show the detailed error message on the UI.

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