Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Destination-S3-V2: Bug: Do not hang on stream missing state #51043

Merged

Conversation

johnny-schmidt
Copy link
Contributor

What

https://github.com/airbytehq/airbyte-internal-issues/issues/11331

Syncs were hanging when we did not get state for some streams, because we were returning early when one stream was empty.

I verified that the unit test case here fails if the continue is reverted back to a return

I also added logs to the cases where an attempt to flush would not return a result

  • no global checkpoints
  • no stream checkpoints for any stream (now we log all the empty streams)

@johnny-schmidt johnny-schmidt requested a review from a team as a code owner January 10, 2025 21:04
Copy link

vercel bot commented Jan 10, 2025

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 Jan 10, 2025 9:11pm

@octavia-squidington-iii octavia-squidington-iii added the CDK Connector Development Kit label Jan 10, 2025
import kotlinx.coroutines.test.runTest
import org.junit.jupiter.api.Test

class CheckpointManagerUTest {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we not need to extend this via @ExtendWith(MockKExtension::class) to get the mock annotations working?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess not? I stepped through with the debugger and the catalog was populated with a mock that was behaving as expected.

@johnny-schmidt johnny-schmidt merged commit 64f591f into master Jan 10, 2025
28 checks passed
@johnny-schmidt johnny-schmidt deleted the jschmidt/s3v2/fix-sync-hands-if-stream-missing-state branch January 10, 2025 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CDK Connector Development Kit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants