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

allow BaseTypingDedupingTest to be interrupted #37854

Conversation

stephane-airbyte
Copy link
Contributor

@stephane-airbyte stephane-airbyte commented May 6, 2024

When timing out, the LoggingInterceptor attempts to interrupt the test-executing thread. Unfortunately, the CompletableFuture.join() call is non-interruptible, which means we still had tests that were hanging forever. This changes it with CompletableFuture.get(), which is interruptible (even though the difference in behavior is not clearly documented. One has to notice that get() throws an InterruptedException while join() doesn't).

Copy link

vercel bot commented May 6, 2024

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview May 6, 2024 7:55pm

@octavia-squidington-iii octavia-squidington-iii added the CDK Connector Development Kit label May 6, 2024
Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @stephane-airbyte and the rest of your teammates on Graphite Graphite

Copy link
Contributor

@edgao edgao left a comment

Choose a reason for hiding this comment

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

🤦

@stephane-airbyte stephane-airbyte marked this pull request as ready for review May 6, 2024 22:03
@stephane-airbyte stephane-airbyte requested a review from a team as a code owner May 6, 2024 22:03
@stephane-airbyte stephane-airbyte merged commit 3c62abe into master May 6, 2024
31 checks passed
@stephane-airbyte stephane-airbyte deleted the stephane/05-06-allow_basetypingdedupingtest_to_be_interrupted branch May 6, 2024 22:04
clnoll pushed a commit that referenced this pull request May 10, 2024
When timing out, the LoggingInterceptor attempts to interrupt the test-executing thread. Unfortunately, the `CompletableFuture.join()` call is non-interruptible, which means we still had tests that were hanging forever. This changes it with `CompletableFuture.get()`, which is interruptible (even though the difference in behavior is not clearly documented. One has to notice that `get()` throws an `InterruptedException` while `join()` doesn't).
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.

None yet

4 participants