Skip to content

Conversation

@xushiyan
Copy link
Member

@xushiyan xushiyan commented Nov 20, 2022

Change Logs

  • Move flaky testInsertAndCleanByVersions to run with SparkClientFunctionalTestHarness to avoid hdfs which in CI env resulted in
Caused by: java.net.ConnectException: Call From fv-az47-641/10.1.0.37 to localhost:46099 failed on connection exception: java.net.ConnectException: Connection refused

Similar to #7034

Impact

NA

Risk level

none

Documentation Update

NA

Contributor's checklist

  • Read through contributor's guide
  • Change Logs and Impact were stated clearly
  • Adequate tests were added if applicable
  • CI passed

* Test Clean-By-Versions using insert/upsert API.
*/
@Test
public void testInsertAndCleanByVersions() throws Exception {
Copy link
Member Author

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 {
Copy link
Member Author

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(
Copy link
Member Author

@xushiyan xushiyan Nov 20, 2022

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 {
Copy link
Member Author

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 {
Copy link
Member Author

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();
Copy link
Member Author

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

@xushiyan xushiyan force-pushed the HUDI-5070-flaky-test-byversions branch from 5f501b7 to a0a8d59 Compare November 20, 2022 12:55
@xushiyan xushiyan added the priority:medium Moderate impact; usability gaps label Nov 20, 2022
@hudi-bot
Copy link
Collaborator

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

@xushiyan xushiyan merged commit 0e1f965 into apache:master Nov 21, 2022
@xushiyan xushiyan deleted the HUDI-5070-flaky-test-byversions branch November 21, 2022 02:41
satishkotha pushed a commit to satishkotha/incubator-hudi that referenced this pull request Dec 12, 2022
alexeykudinkin pushed a commit to onehouseinc/hudi that referenced this pull request Dec 14, 2022
alexeykudinkin pushed a commit to onehouseinc/hudi that referenced this pull request Dec 14, 2022
alexeykudinkin pushed a commit to onehouseinc/hudi that referenced this pull request Dec 14, 2022
alexeykudinkin pushed a commit to onehouseinc/hudi that referenced this pull request Dec 14, 2022
fengjian428 pushed a commit to fengjian428/hudi that referenced this pull request Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:medium Moderate impact; usability gaps

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants