Skip to content

Commit

Permalink
cdk-fix-zerobyte-flush
Browse files Browse the repository at this point in the history
  • Loading branch information
gisripa committed Jun 5, 2024
1 parent 7057fc3 commit 5997f8c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions airbyte-cdk/java/airbyte-cdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ corresponds to that version.

| Version | Date | Pull Request | Subject |
|:--------|:-----------|:-----------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 0.36.6 | 2024-06-05 | [\#39106](https://github.com/airbytehq/airbyte/pull/39106) | Skip write to storage with 0 byte file |
| 0.36.5 | 2024-06-01 | [\#38792](https://github.com/airbytehq/airbyte/pull/38792) | Throw config exception if no selectable table exists in user provided schemas |
| 0.36.4 | 2024-05-31 | [\#38824](https://github.com/airbytehq/airbyte/pull/38824) | Param marked as non-null to nullable in JdbcDestinationHandler for NPE fix |
| 0.36.2 | 2024-05-29 | [\#38538](https://github.com/airbytehq/airbyte/pull/38357) | Exit connector when encountering a config error. |
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=0.36.5
version=0.36.6
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ class StagingStreamOperations<DestinationState : MinimumDestinationState>(
log.info {
"Buffer flush complete for stream ${streamConfig.id.originalName} (${FileUtils.byteCountToDisplaySize(it.byteCount)}) to staging"
}
storageOperation.writeToStage(streamConfig, writeBuffer)
if (it.byteCount != 0L) {
storageOperation.writeToStage(streamConfig, writeBuffer)
} else {
log.info { "Skipping writing to storage since there are no bytes to write" }
}
}
}
}

0 comments on commit 5997f8c

Please sign in to comment.