-
Notifications
You must be signed in to change notification settings - Fork 514
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 timeout for async DoFn #5534
Conversation
0c823d5
to
4b7ca53
Compare
Add unit testing Fit unit testing Make sure callback is completed Remove old branch relicate
4b7ca53
to
e84e3f2
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5534 +/- ##
=======================================
Coverage 61.42% 61.43%
=======================================
Files 312 312
Lines 11104 11106 +2
Branches 757 750 -7
=======================================
+ Hits 6821 6823 +2
Misses 4283 4283 ☔ View full report in Codecov by Sentry. |
@@ -66,21 +68,26 @@ object BigtableDoFnTest { | |||
val queue: ConcurrentLinkedQueue[Int] = new ConcurrentLinkedQueue[Int]() | |||
} | |||
|
|||
class TestBigtableDoFn extends BigtableDoFn[Int, String](null) { | |||
class TestBigtableDoFn extends BigtableDoFn[Int, String](BigtableOptions.getDefaultOptions) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean to have these BT changes here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, in BT, the timeout is taken from the settings now, we can't pass null.
+1 for a sane default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
Fix #4040
Should we set a sane timeout default ?