Skip to content

Commit

Permalink
cdk-java: remove (Serial)StagingConsumerFactory (#41950)
Browse files Browse the repository at this point in the history
## What
<!--
* Describe what the change is solving. Link all GitHub issues related to this change.
-->

## How
<!--
* Describe how code changes achieve the solution.
-->

## Review guide
<!--
1. `x.py`
2. `y.py`
-->

## User Impact
<!--
* What is the end result perceived by the user?
* If there are negative side effects, please list them. 
-->

## Can this PR be safely reverted and rolled back?
<!--
* If unsure, leave it blank.
-->
- [ ] YES 💚
- [ ] NO ❌
  • Loading branch information
stephane-airbyte authored Jul 22, 2024
1 parent c452498 commit 9697fa7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 502 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ import io.airbyte.commons.json.Jsons
import io.airbyte.protocol.models.v0.AirbyteStreamNameNamespacePair
import io.airbyte.protocol.models.v0.ConfiguredAirbyteCatalog
import io.github.oshai.kotlinlogging.KotlinLogging
import java.util.*
import kotlin.collections.HashMap
import kotlin.collections.HashSet
import org.apache.commons.io.FileUtils

private val log = KotlinLogging.logger {}
Expand All @@ -26,6 +29,7 @@ private val log = KotlinLogging.logger {}
* writing, we avoid doing so to simplify the migration to async flushing.
*/
object SerialFlush {
val RANDOM_CONNECTION_ID: UUID = UUID.randomUUID()
/**
* Logic handling how destinations with staging areas (aka bucket storages) will flush their
* buffer
Expand Down Expand Up @@ -88,7 +92,7 @@ object SerialFlush {
val stageName = stagingOperations.getStageName(schemaName, writeConfig.outputTableName)
val stagingPath =
stagingOperations.getStagingPath(
SerialStagingConsumerFactory.Companion.RANDOM_CONNECTION_ID,
RANDOM_CONNECTION_ID,
schemaName,
writeConfig.streamName,
writeConfig.outputTableName,
Expand Down

This file was deleted.

Loading

0 comments on commit 9697fa7

Please sign in to comment.