Repository navigation
[Load-CDK] Pre-speed cleanup; Remove dead old interface code - #59735
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
e44c41f to
9d719e1
Compare
ece95d6 to
8ea5cae
Compare
|
|
9d719e1 to
2db5580
Compare
2db5580 to
06b6538
Compare
649624a to
a9a7f57
Compare
Edward Gao (edgao)
left a comment
There was a problem hiding this comment.
couple nits, otherwise ![]()
| import io.airbyte.cdk.load.command.DestinationStream | ||
| import io.airbyte.cdk.load.state.CheckpointId | ||
|
|
||
| // DEPRECATED: Legacy file transfer |
There was a problem hiding this comment.
checking: we'd like to @Deprecated these, but we have werror enabled, and it would be really annoying to add an @Suppress("deprecation") to all the affected code?
There was a problem hiding this comment.
Yes, this is just a way to find all the stuff easily
| suspend fun addStreamCheckpoint( | ||
| key: DestinationStream.Descriptor, | ||
| indexOrId: Long, | ||
| checkpointId: CheckpointId, |
There was a problem hiding this comment.
CheckpointId currently holds an Int rather than a Long - is that fine? (I'm assuming this only really matters for usecases still using the old checkpoint style, and running syncs with >2billion records?)
There was a problem hiding this comment.
Hm, I guess in theory this could break with really big syncs that send >= 1 state message per record.
| private val failSyncIsEnqueued = AtomicBoolean(false) | ||
|
|
||
| private val closeStreamHasRun = ConcurrentHashMap<DestinationStream.Descriptor, AtomicBoolean>() | ||
| val closeStreamHasRun = ConcurrentHashMap<DestinationStream.Descriptor, AtomicBoolean>() |
There was a problem hiding this comment.
nit: I think this can still be private?
| launch(flushTickTask) | ||
| } | ||
| log.info { "Setting up load pipeline" } | ||
| loadPipeline!!.start { launch(it) } |
There was a problem hiding this comment.
nit could probably do something like this, to avoid the !!
class DTL(loadPipeline: LoadPipeline?) {
private val loadPipeline: LoadPipeline
init { loadPipeline = loadPipeline ?: throw }
}| value = ["NP_NONNULL_PARAM_VIOLATION", "NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE"], | ||
| justification = "Kotlin async continuation" | ||
| ) | ||
| class ObjectStorageStreamLoader<T : RemoteObject<*>, U : OutputStream>( |
There was a problem hiding this comment.
Yes I was happy to see this guy go.
f8c8bd1 to
24f6c4e
Compare
06b6538 to
c22d02e
Compare
|
|
c11e00c to
4757809
Compare
4757809 to
9091e1e
Compare
What
NON-Functional Change
Removes all the code from the load CDK that constituted the "old interface"
Notes
This is entirely just cutting unused stuff, with a couple of small exceptions
RecordToPartAccumulatorTest -> ObjectLoaderPartFormatterTestandPartToObjectAccumulatorTest -> ObjectLoaderPartLoaderTest)Connectors affected
This is entirely cdk code, except for MSSQL, where there was still some dead code using the old interface I hadn't pruned yet. So there will be a NOP MSSQL release
Not in scope
Testing
Releasing
This is blocked by Moving Legacy File XFer to the New Interface, which is pending one cloud migration