hudi icon indicating copy to clipboard operation
hudi copied to clipboard

[HUDI-7208] Do writing stage should shutdown with error when insert failed to reduce user execute time and show error details

Open xuzifu666 opened this issue 1 year ago • 4 comments

Change Logs

when user execute merge into or insert into to a table,if source table data is not right(such as source schema is not consistent to target table),should shutdown and throw error details to user,this can reduce cost of job and indicate more message for user to dig questions,job is not error evenwhen data insert occur error,this would misstake user and cost more compute time which is not necessary,like the pictures:

stage status show success,but had been failed due to writing failed,details in : https://issues.apache.org/jira/browse/HUDI-7208

Impact

none

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

  • The config description must be updated if new configs are added or the default value of the configs are changed
  • Any new feature or user-facing change requires updating the Hudi website. Please create a Jira ticket, attach the ticket number here and follow the instruction to make changes to the website.

Contributor's checklist

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

xuzifu666 avatar Dec 11 '23 07:12 xuzifu666

java ci error seem not relate to the changed code,and azure is success

xuzifu666 avatar Dec 15 '23 01:12 xuzifu666

@xuzifu666 Thanks for contribution. This pr add throw exception in each write handlers. Is it possible to check all write statuses for failures during the commit phase?

beyond1920 avatar Dec 28 '23 06:12 beyond1920

@xuzifu666 Thanks for contribution. This pr add throw exception in each write handlers. Is it possible to check all write statuses for failures during the commit phase?

Good advice,I would change it

xuzifu666 avatar Dec 28 '23 06:12 xuzifu666

CI error seems not relete to the changed code,and Azure CI is success @danny0405

xuzifu666 avatar Dec 29 '23 07:12 xuzifu666

@bvaradar All had addressed,could you give the final review and give more advices?

xuzifu666 avatar Jan 03 '24 10:01 xuzifu666

CI report:

  • 05bed31829f2362de479344215d29ccca99bd449 UNKNOWN
  • c809e66dd23358183eacb62c16d7d8f1488543cf Azure: SUCCESS
Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

hudi-bot avatar Jan 29 '24 04:01 hudi-bot