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

Configure s3 api to use AWS Prefix #370

Conversation

aindriu-aiven
Copy link
Contributor

@aindriu-aiven aindriu-aiven commented Dec 11, 2024

  • This update means we can now use the PREFIX in the AWS API allowing users to configure it to be more specific about what they want processed by the connector.

Signed-off-by: Aindriu Lavelle <aindriu.lavelle@aiven.io>
@aindriu-aiven aindriu-aiven changed the base branch from main to s3-source-release December 11, 2024 12:33
@aindriu-aiven aindriu-aiven marked this pull request as ready for review December 11, 2024 12:33
@aindriu-aiven aindriu-aiven requested review from a team as code owners December 11, 2024 12:33
@aindriu-aiven aindriu-aiven force-pushed the aindriu-aiven/configure-s3-api branch from 2a67cc2 to 071992d Compare December 11, 2024 13:16
@aindriu-aiven aindriu-aiven changed the title Configure s3 api to use AWS Prefix and startAfter values Configure s3 api to use AWS Prefix Dec 11, 2024
Signed-off-by: Aindriu Lavelle <aindriu.lavelle@aiven.io>
@aindriu-aiven aindriu-aiven force-pushed the aindriu-aiven/configure-s3-api branch from 071992d to 95835f1 Compare December 12, 2024 10:28
@@ -337,13 +339,18 @@ private static byte[] generateNextAvroMessagesStartingFromId(final int messageId
}

private static String writeToS3(final String topicName, final byte[] testDataBytes, final String partitionId) {
final String objectKey = topicName + "-" + partitionId + "-" + System.currentTimeMillis() + ".txt";
final String objectKey = addPrefixOrDefault("") + topicName + "-" + partitionId + "-"
Copy link
Contributor

Choose a reason for hiding this comment

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

can we add a prefix to any one of the integration tests and assert for count ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The prefix was previously added in the config for the integration tests, but not being used. We are actually using the prefix correctly in our integration tests now.

Signed-off-by: Aindriu Lavelle <aindriu.lavelle@aiven.io>
Copy link
Contributor

@muralibasani muralibasani left a comment

Choose a reason for hiding this comment

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

LGTM

@Claudenw Claudenw merged commit 24df6ab into Aiven-Open:s3-source-release Dec 16, 2024
8 checks passed
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.

3 participants