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
[FLINK-14843][e2e] Refactor bucketing sink test to make it more stable and comprehensible #10685
Conversation
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit 18d9268 (Wed Dec 25 08:59:14 UTC 2019) Warnings:
Mention the bot in a comment to re-run the automated checks. Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. The Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commandsThe @flinkbot bot supports the following commands:
|
@flinkbot run travis |
@flinkbot run azure |
@flinkbot run travis |
…e and comprehensible
@kl0u Can you help to review this PR? Thanks |
@kl0u is currently on vacation but I'm sure he'll have a look once he's back. |
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.
Thanks for working on this @banmoy ! In general changes look good. I had some minor comments. Do you think that the same change can be applied to the StreamingFileSink
end-to-end test?
@@ -74,8 +74,8 @@ public static void main(String[] args) throws Exception { | |||
.setBucketer(new KeyBucketer()) | |||
.setBatchSize(Long.MAX_VALUE) | |||
.setBatchRolloverInterval(Long.MAX_VALUE) | |||
.setInactiveBucketCheckInterval(Long.MAX_VALUE) | |||
.setInactiveBucketThreshold(Long.MAX_VALUE); | |||
.setInactiveBucketCheckInterval(2000) |
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.
Why not setting the values to something smaller so that the test runs faster?
@@ -27,7 +27,7 @@ function get_total_number_of_valid_lines { | |||
# this method assumes that pending files contain valid data. |
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.
The comment is now invalid as we do not assume that pending files have valid data anymore.
@@ -150,7 +148,7 @@ wait_job_terminal_state ${JOB_ID} "CANCELED" | |||
echo "Job $JOB_ID was cancelled, time to verify" | |||
|
|||
# get all lines in pending or part files |
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.
The comment is now invalid as we do not get the lines in the pending files.
@kl0u Thanks for your review. In |
travis on ce56c02 failed with |
@flinkbot run travis |
Thanks for the work @banmoy ! Merged it |
What is the purpose of the change
Refactor bucketing sink e2e test to make it more stable and comprehensible.
Brief change log
BucketingSinkTestProgram
, set inactiveBucketCheckInterval and inactiveBucketThreshold to 2000 and 4000 respectivelyVerifying this change
Existing e2e test.
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (yes / no)Documentation