-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[HUDI-6174] Fixing flaky tests in HoodieDeltastreamer #8646
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
Conversation
| // Step 5 : FirstReplaceHoodieInstant should not be retained. | ||
| long count = meta.reloadActiveTimeline().getCompletedReplaceTimeline().getInstantsAsStream().filter(instant -> firstReplaceHoodieInstant.get().equals(instant)).count(); | ||
| assertEquals(1, count); | ||
| assertEquals(0, count); |
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.
Do we want construct a test where the replacecommit should be retained?
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.
@nsivabalan I'll land this PR to unblock CI. Let's follow up on this.
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.
sure.
227ea1a to
782d73b
Compare
| // collect active commits for table | ||
| val commits = spark.sql(s"""call show_commits(table => '$tableName', limit => 10)""").collect() | ||
| assertResult(5) { | ||
| assertResult(4) { |
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.
@nsivabalan @yihua
Can somebody explain it? What is the root cause of the changes in the results here? Why when we "insert data to table, will generate 5 active commits and 2 archived commits" get only 4 commits here?
Change Logs
Fixing flaky cleaner and replace commit tests in TestHoodieDeltastreamer
Impact
Fixing flaky cleaner and replace commit tests in TestHoodieDeltastreamer
Risk level (write none, low medium or high below)
low.
Documentation Update
Describe any necessary documentation update if there is any new feature, config, or user-facing change
ticket number here and follow the instruction to make
changes to the website.
Contributor's checklist