-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[HUDI-5070] Move flaky cleaner tests to separate class #7251
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
[HUDI-5070] Move flaky cleaner tests to separate class #7251
Conversation
| * Test Clean-By-Versions using insert/upsert API. | ||
| */ | ||
| @Test | ||
| public void testInsertAndCleanByVersions() throws Exception { |
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.
this moved to TestCleanerInsertAndCleanByVersions
| * @throws Exception in case of errors | ||
| */ | ||
| @Test | ||
| public void testInsertPreppedAndCleanByVersions() throws Exception { |
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.
this moved to TestCleanerInsertAndCleanByVersions
| testInsertAndCleanByVersions(SparkRDDWriteClient::insertPreppedRecords, SparkRDDWriteClient::upsertPreppedRecords, | ||
| true); | ||
| } | ||
| private void testInsertAndCleanFailedWritesByVersions( |
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.
this was moved up from the bottom to here below public void testInsertAndCleanFailedWritesByVersions()
| * Test Clean-By-Versions using bulk-insert/upsert API. | ||
| */ | ||
| @Test | ||
| public void testBulkInsertAndCleanByVersions() throws Exception { |
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.
this moved to TestCleanerInsertAndCleanByVersions
| * Test Clean-By-Versions using prepped versions of bulk-insert/upsert API. | ||
| */ | ||
| @Test | ||
| public void testBulkInsertPreppedAndCleanByVersions() throws Exception { |
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.
this moved to TestCleanerInsertAndCleanByVersions
|
|
||
| // Keep doing some writes and clean inline. Make sure we have expected number of files remaining. | ||
| for (int i = 0; i < 8; i++) { | ||
| String newCommitTime = makeNewCommitTime(); |
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.
added try with close for client - the diff above is mostly indentation change
5f501b7 to
a0a8d59
Compare
Change Logs
SparkClientFunctionalTestHarnessto avoid hdfs which in CI env resulted inSimilar to #7034
Impact
NA
Risk level
none
Documentation Update
NA
Contributor's checklist