-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Fix Java GCP-IO Direct job #34019
base: master
Are you sure you want to change the base?
Fix Java GCP-IO Direct job #34019
Changes from 4 commits
182b049
39b8440
31ee2ac
e51eea3
2f16a13
1e695b4
fd4ad9c
1d729c5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,6 @@ | |
package org.apache.beam.sdk.io.gcp.datastore; | ||
|
||
import static org.junit.Assert.assertThrows; | ||
import static org.mockito.Mockito.verify; | ||
|
||
import java.util.Map; | ||
import java.util.UUID; | ||
|
@@ -50,7 +49,7 @@ public class RampupThrottlingFnTest { | |
@Mock private Counter mockCounter; | ||
private final Sleeper mockSleeper = | ||
millis -> { | ||
verify(mockCounter).inc(millis); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. would you mind explaining a little bit how this fixed the flaky test There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
mockCounter.inc(millis); | ||
throw new RampupDelayException(); | ||
}; | ||
private DoFnTester<String, String> rampupThrottlingFnTester; | ||
|
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.
R: @ahmedabu98 who took care of SchemaUpdate tests
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.
@akashorabek can we set
TOTAL_NUM_STREAMS=6
andSCHEMA_UPDATE_TRIGGER=2
? I worry we might be missing some unknown edge cases by restricting it too muchThere 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.
@ahmedabu98 done