Skip to content

Rodi/refactor output consumer - #62862

Merged
Rodi Reich Zilberman (rodireich) merged 9 commits into
masterfrom
rodi/refactor-output-consumer
Jul 10, 2025
Merged

Rodi/refactor output consumer#62862
Rodi Reich Zilberman (rodireich) merged 9 commits into
masterfrom
rodi/refactor-output-consumer

Conversation

@rodireich

@rodireich Rodi Reich Zilberman (rodireich) commented Jul 8, 2025

Copy link
Copy Markdown
Contributor

Refactor SocketJsonOutputConsumer and StdoutOutputConsumer to share a single base class.

@vercel

vercel Bot commented Jul 8, 2025

Copy link
Copy Markdown

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

Name Status Preview Comments Updated (UTC)
airbyte-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 10, 2025 5:34pm

@github-actions

github-actions Bot commented Jul 8, 2025

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.
    • You can specify a custom changelog by passing changelog. Example: /bump-version changelog="My cool update"
    • Leaving the changelog arg blank will auto-populate the changelog from the PR title.
  • /run-cat-tests - Runs legacy CAT tests (Connector Acceptance Tests)
  • /build-connector-images - Builds and publishes a pre-release docker image for the modified connector(s).

📝 Edit this welcome message.

@github-actions

github-actions Bot commented Jul 8, 2025

Copy link
Copy Markdown
Contributor

destination-s3 Connector Test Results

631 tests   293 ✅  1h 30m 2s ⏱️
 20 suites  338 💤
 20 files      0 ❌

Results for commit 3668cca.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Jul 8, 2025

Copy link
Copy Markdown
Contributor

destination-clickhouse-v2 Connector Test Results

 14 files   14 suites   2m 53s ⏱️
191 tests 171 ✅ 20 💤 0 ❌
211 runs  191 ✅ 20 💤 0 ❌

Results for commit 3668cca.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Jul 8, 2025

Copy link
Copy Markdown
Contributor

destination-mssql Connector Test Results

141 tests   111 ✅  7m 34s ⏱️
 12 suites   30 💤
 12 files      0 ❌

Results for commit 3668cca.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Jul 8, 2025

Copy link
Copy Markdown
Contributor

destination-dev-null Connector Test Results

50 tests   12 ✅  41s ⏱️
 4 suites  38 💤
 4 files     0 ❌

Results for commit 3668cca.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Jul 8, 2025

Copy link
Copy Markdown
Contributor

destination-customer-io Connector Test Results

51 tests   15 ✅  25s ⏱️
 7 suites  36 💤
 7 files     0 ❌

Results for commit 3668cca.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Jul 8, 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 3668cca.

♻️ This comment has been updated with latest results.

@rodireich
Rodi Reich Zilberman (rodireich) marked this pull request as ready for review July 8, 2025 22:09

@mwbayley Matt Bayley (mwbayley) 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.

A few questions. Maybe the class hierarchy can be simpler?

}

/** A simple [OutputConsumer] such as standard output or buffering test output consumer. */
abstract class StandardOutputConsumer(clock: Clock) : BaseStdoutOutputConsumer(clock)

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.

What's the point of this class? It extends the BaseStdoutOutputConsumer without adding any implementations.

StandardOutputConsumer(
clock,
) {
override fun withLockFlush() {

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.

Where does the name withLockFlush come from? I don't see any locking.

Comment on lines +231 to +234
if (buffer.size() >= bufferByteSizeThresholdForFlush) {
withLockFlush()
}
}

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.

We check buffer.size() both here and in the withLockFlush() function, which violates separation of concerns. Maybe move this size check into withLockFlush() and rename to something like maybeFlush()?

}
}
}
abstract fun withLockFlush()

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.

Can you help me understand why we need this abstract function? It feels internal to the implementations.

core = 'extract'
toolkits = ['extract-jdbc', 'extract-cdc']
cdk = '0.530'
cdk = 'local'

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.

are we pinning to a CDK version, or no?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm keeping local for now on RCs as the CDK is not calcified yet - frequent updates.
I'm going to set to a published version for the release.

@rodireich
Rodi Reich Zilberman (rodireich) deleted the rodi/refactor-output-consumer branch July 10, 2025 19:59
devin-ai-integration Bot added a commit that referenced this pull request May 6, 2026
…ames

- 3.52.1: 2026-05-05 -> 2026-05-06 (PR #77787 merge date)
- 3.50.5: 2025-07-30 -> 2025-07-31 (PR #63377 UTC merge date)
- 3.50.3: 2025-07-18 -> 2025-07-22 (PR #63349 merge date)
- 3.50.1-rc.1: 2025-07-08 -> 2025-07-10 (PR #62862 merge date)
- Step 3 SSL modes: `require`/`verify-ca` -> `required`/`verify_ca` to match the actual mode values in the spec

Co-Authored-By: bot_apk <apk@cognition.ai>
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