-
Notifications
You must be signed in to change notification settings - Fork 26
Migrate gcs sink integration #552
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
base: FEAT_common_sink_integration_tests
Are you sure you want to change the base?
Migrate gcs sink integration #552
Conversation
# Conflicts: # commons/src/testFixtures/java/io/aiven/commons/kafka/testkit/KafkaConnectRunner.java
1491b14 to
9295cc3
Compare
|
|
||
| private BlobContainerAsyncClient containerClient; | ||
| private BlobAsyncClient blobClient; | ||
|
|
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.
can remove if you want :D
| @Override | ||
| public int compareTo(Record o) { | ||
| int result = value.toString().compareTo(o.value.toString()); | ||
| // String[] schema = value.getSchema().getFields().stream().map(Schema.Field::name).toArray(String[]::new); |
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.
Theres a good bit of commented out code here, needs to be either added back in or deleted with reasoning.
| @Override | ||
| public void flush(final Map<TopicPartition, OffsetAndMetadata> currentOffsets) { | ||
| try { | ||
| LOG.debug("Flushing {} files", recordGrouper.records().size()); |
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.
is it better to add the below for these two debug statements?
if(LOG.isdebugenabled()) {
}
This PR establishes common sink integration testing framework and utilizes it to implement the existing sink integrations.
DO NOT MERGE
This phase of the PR is to establish that the implemented tests implement the tests found in the GCS code. In addition, it establishes the abstract testing framework that will be applied to Azure and S3 sink implementations to ensure that all implementations work the same.