Skip to content

Load-CDK/Dest-S3: Sync Hangs on OOM sometimes - #55875

Merged
Johnny Schmidt (johnny-schmidt) merged 1 commit into
masterfrom
jschmidt/load-cdk-dest-s3/handle-throwable
Mar 20, 2025
Merged

Johnny Schmidt (johnny-schmidt) merged 1 commit into
masterfrom
jschmidt/load-cdk-dest-s3/handle-throwable

Conversation

@johnny-schmidt

@johnny-schmidt Johnny Schmidt (johnny-schmidt) commented Mar 20, 2025 •

Copy link
Copy Markdown
Contributor

What

Addresses https://github.com/airbytehq/oncall/issues/7133

If a Throwable (not Exception) is thrown from a load CDK task, exception handling won't run and won't shut down tasks. It seems like under some conditions this results in the process not shutting down properly after an OOM.

Artificially injecting a throwable into the worker tasks or the open-stream task will cause ITs to hang.

Alarmingly, injecting any exception into the close-stream task might not cause tests to fail. Opened https://github.com/airbytehq/airbyte-internal-issues/issues/12115 to track.

@vercel

vercel Bot commented Mar 20, 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 Mar 20, 2025 5:27pm

@edgao Edward Gao (edgao) 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.

:shipit: as hotfix, but also I thought we enabled the "kill JVM on OOM" option :/ so it's surprising that we even need to handle this case.

(in general I dislike catching OOM, b/c at that point, you're decently likely to just throw another OOM when you e.g. make a new string log message)

@edgao

Copy link
Copy Markdown
Contributor

yeah, we have -XX:+ExitOnOutOfMemoryError...

'-XX:+ExitOnOutOfMemoryError', '-XX:MaxRAMPercentage=75.0',

@johnny-schmidt
Johnny Schmidt (johnny-schmidt) deleted the jschmidt/load-cdk-dest-s3/handle-throwable branch March 20, 2025 17:50
Sven Pöche (Valgard) pushed a commit to mayflower/airbyte that referenced this pull request Mar 25, 2025

This branch was successfully deployed

1 active deployment
Preview — 7e051824 Deployed Mar 20, 2025 by vercel[bot]
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.

3 participants