You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: airbyte-cdk/java/airbyte-cdk/s3-destinations/src/main/kotlin/io/airbyte/cdk/integrations/destination/s3/BlobStorageOperations.kt
+16
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,22 @@ abstract class BlobStorageOperations protected constructor() {
53
53
pathFormat:String
54
54
)
55
55
56
+
/** Clean up all the objects matching the provided [keysToDelete] */
Copy file name to clipboardExpand all lines: airbyte-cdk/java/airbyte-cdk/s3-destinations/src/main/kotlin/io/airbyte/cdk/integrations/destination/s3/S3ConsumerFactory.kt
+53-8
Original file line number
Diff line number
Diff line change
@@ -69,17 +69,20 @@ class S3ConsumerFactory {
69
69
val pathFormat = writeConfig.pathFormat
70
70
if (mustCleanUpExistingObjects(writeConfig, storageOperations)) {
71
71
LOGGER.info {
72
-
"Clearing storage area in destination started for namespace $namespace"+
72
+
"Listing objects to cleanup for namespace $namespace"+
Copy file name to clipboardExpand all lines: airbyte-cdk/java/airbyte-cdk/s3-destinations/src/main/kotlin/io/airbyte/cdk/integrations/destination/s3/S3StorageOperations.kt
+36
Original file line number
Diff line number
Diff line change
@@ -459,6 +459,42 @@ open class S3StorageOperations(
Copy file name to clipboardExpand all lines: airbyte-cdk/java/airbyte-cdk/s3-destinations/src/main/kotlin/io/airbyte/cdk/integrations/destination/s3/WriteConfig.kt
+2-8
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ constructor(
18
18
val generationId:Long?,
19
19
val minimumGenerationId:Long?,
20
20
val storedFiles:MutableList<String> =arrayListOf(),
21
+
val objectsFromOldGeneration:MutableList<String> =arrayListOf()
Copy file name to clipboardExpand all lines: airbyte-cdk/java/airbyte-cdk/s3-destinations/src/testFixtures/kotlin/io/airbyte/cdk/integrations/destination/s3/S3DestinationAcceptanceTest.kt
+60
Original file line number
Diff line number
Diff line change
@@ -451,6 +451,66 @@ protected constructor(
451
451
)
452
452
}
453
453
454
+
/** Test runs 2 failed syncs and verifies the previous sync objects are not cleaned up. */
0 commit comments