Skip to content

[HUDI-5655] Closing write client for spark ds writer in all cases #7799

Merged
nsivabalan merged 1 commit intoapache:masterfrom
nsivabalan:closeWriteClientSparkDS
Jan 31, 2023
Merged

[HUDI-5655] Closing write client for spark ds writer in all cases #7799
nsivabalan merged 1 commit intoapache:masterfrom
nsivabalan:closeWriteClientSparkDS

Conversation

@nsivabalan
Copy link
Copy Markdown
Contributor

@nsivabalan nsivabalan commented Jan 31, 2023

Change Logs

Looks like we miss to close the writeClient on some of the failure cases while writing vis spark-ds.

Impact

Spark submit applications will exit on any failures w/ hudi. Prior to this patch, it might hung for some of the failures.

Risk level (write none, low medium or high below)

low.

Test:
Mimics hive sync failure and tested a spark submit application which writes to hudi. w/o the fix, the spark submit is just stuck. w/ this patch, spark submit completes w/ the proper stacktrace.

Documentation Update

N/A

Contributor's checklist

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

@nsivabalan nsivabalan added the priority:blocker Production down; release blocker label Jan 31, 2023
@hudi-bot
Copy link
Copy Markdown
Collaborator

CI report:

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

Copy link
Copy Markdown
Member

@codope codope left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@nsivabalan
Copy link
Copy Markdown
Contributor Author

CI failed due to known flaky test. going ahead w/ landing.

@nsivabalan nsivabalan merged commit 9906df4 into apache:master Jan 31, 2023
fengjian428 pushed a commit to fengjian428/hudi that referenced this pull request Jan 31, 2023
…cluding exception) (apache#7799)

Looks like we miss to close the writeClient on some of the failure cases while writing via spark-ds and spark-sql writes.
yihua pushed a commit that referenced this pull request Jan 31, 2023
…cluding exception) (#7799)

Looks like we miss to close the writeClient on some of the failure cases while writing via spark-ds and spark-sql writes.
nsivabalan added a commit to nsivabalan/hudi that referenced this pull request Mar 22, 2023
…cluding exception) (apache#7799)

Looks like we miss to close the writeClient on some of the failure cases while writing via spark-ds and spark-sql writes.
fengjian428 pushed a commit to fengjian428/hudi that referenced this pull request Apr 5, 2023
…cluding exception) (apache#7799)

Looks like we miss to close the writeClient on some of the failure cases while writing via spark-ds and spark-sql writes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:blocker Production down; release blocker

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants