Skip to content

Socket mode in bulk extract CDK - #60993

Merged
Rodi Reich Zilberman (rodireich) merged 153 commits into
masterfrom
12734-file-sockets-generate-required-sockets-handle-socket-listeners
Jul 7, 2025
Merged

Rodi Reich Zilberman (rodireich) merged 153 commits into
masterfrom
12734-file-sockets-generate-required-sockets-handle-socket-listeners

Conversation

@rodireich

@rodireich Rodi Reich Zilberman (rodireich) commented May 30, 2025 •

Copy link
Copy Markdown
Contributor

What

Adding a new speed mode to the bulk extract CDK which allows a connector to relay records over file sockets directly to a destination.

How

In addition to legacy STDIO mode, the extract CDK supports a new SOCKET mode which initializes all the structures necessary for running a connector that emits records over sockets concurrently.

Review guide

Areas of interest / good starting point:

  1. new data-channel environment variables that control the connector mode, socket or stdio in application.yml
  2. SocketDataChannel.kt wrapping unix domain sockets and SocketDataChannelResourceHolder.kt managing socket resource assignment and reuse.
  3. Resource.kt extending resources acquisition to multiple kinds of resources (db connection and/or socket)
  4. NativeRecord.kt creating an intermediate representation format of a db row before it is converted to the desired wire format - json or protobuf
  5. Also NativeRecord.kt - protobuf encoders.
  6. FeedReader.maybeCheckpoint(): extended to emit states and stream statuses on all necessary pipes - stdio and/sockets. ensuring that all pending messages are emitted before wrapping up read job.
  7. OutputMessageRouter - establishing the appropriate routes for messages sending over the correct pipe with the correct output format.

User Impact

Any existing connector should be able to run in legacy mode without having to make any changes.

Can this PR be safely reverted and rolled back?

@vercel

vercel Bot commented May 30, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Jul 7, 2025 7:38pm

@github-actions

Copy link
Copy Markdown
Contributor

👋 Greetings, Contributor!

Here are some helpful tips and reminders for your convenience.

Helpful Resources

PR Slash Commands

Airbyte Maintainers (that's you!) can execute the following slash commands on your PR:

  • /format-fix - Fixes most formatting issues.
  • /bump-version - Bumps connector versions.
  • /run-cat-tests - Runs legacy CAT tests (Connector Acceptance Tests)

📝 Edit this welcome message.

@github-actions

github-actions Bot commented May 30, 2025 •

Copy link
Copy Markdown
Contributor

source-mysql Connector Test Results

  8 files    8 suites   27s ⏱️
 46 tests  46 ✅ 0 💤 0 ❌
170 runs  170 ✅ 0 💤 0 ❌

Results for commit 40aec4b.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Jul 7, 2025 •

Copy link
Copy Markdown
Contributor

destination-dev-null Connector Test Results

47 tests   12 ✅  39s ⏱️
 4 suites  35 💤
 4 files     0 ❌

Results for commit 40aec4b.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Jul 7, 2025 •

Copy link
Copy Markdown
Contributor

destination-mssql Connector Test Results

135 tests   109 ✅  7m 3s ⏱️
 12 suites   26 💤
 12 files      0 ❌

Results for commit 40aec4b.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Jul 7, 2025 •

Copy link
Copy Markdown
Contributor

destination-azure-blob-storage Connector Test Results

129 tests   99 ✅  11m 15s ⏱️
  7 suites  30 💤
  7 files     0 ❌

Results for commit 40aec4b.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Jul 7, 2025 •

Copy link
Copy Markdown
Contributor

destination-clickhouse-v2 Connector Test Results

 14 files   14 suites   2m 55s ⏱️
178 tests 162 ✅ 16 💤 0 ❌
198 runs  182 ✅ 16 💤 0 ❌

Results for commit 40aec4b.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Jul 7, 2025 •

Copy link
Copy Markdown
Contributor

destination-s3-data-lake Connector Test Results

234 tests   137 ✅  4m 57s ⏱️
 15 suites   97 💤
 15 files      0 ❌

Results for commit 40aec4b.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Jul 7, 2025 •

Copy link
Copy Markdown
Contributor

destination-s3 Connector Test Results

586 tests   293 ✅  1h 30m 8s ⏱️
 20 suites  293 💤
 20 files      0 ❌

Results for commit 40aec4b.

♻️ This comment has been updated with latest results.

@burakku Wenqi Hu (burakku) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's go and fingers crossed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants