Skip to content
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-1023] Add validation error messages in delta sync #1710

Merged
merged 3 commits into from Jun 19, 2020

Conversation

xushiyan
Copy link
Member

@xushiyan xushiyan commented Jun 7, 2020

  • add more validation error message
  • make write config constants public

This change added tests and can be verified as follows:

  • Test by running delta streamers with invalid configs and verify the error messages

Committer checklist

  • Has a corresponding JIRA in PR title & commit

  • Commit message is descriptive of the change

  • CI is green

  • Necessary doc changes done or have another open PR

  • For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

- avoid overwrite index type
- add more validation error message
- make write config constants public
@xushiyan xushiyan force-pushed the fix-deltrastreamer-index-config branch from 60ce80b to 22533af Compare June 7, 2020 01:36
@codecov-commenter
Copy link

Codecov Report

Merging #1710 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #1710   +/-   ##
=========================================
  Coverage     18.19%   18.20%           
- Complexity      857      858    +1     
=========================================
  Files           348      348           
  Lines         15358    15357    -1     
  Branches       1525     1525           
=========================================
+ Hits           2794     2795    +1     
+ Misses        12206    12204    -2     
  Partials        358      358           
Impacted Files Coverage Δ Complexity Δ
...java/org/apache/hudi/config/HoodieWriteConfig.java 39.84% <100.00%> (-0.24%) 48.00 <1.00> (ø)
...apache/hudi/common/fs/HoodieWrapperFileSystem.java 22.69% <0.00%> (+0.70%) 29.00% <0.00%> (+1.00%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fb28393...6f98540. Read the comment docs.

.withCompactionConfig(HoodieCompactionConfig.newBuilder().withPayloadClass(cfg.payloadClassName)
// Inline compaction is disabled for continuous mode. otherwise enabled for MOR
.withInlineCompaction(cfg.isInlineCompactionEnabled()).build())
.forTable(cfg.targetTableName)
.withIndexConfig(HoodieIndexConfig.newBuilder().withIndexType(HoodieIndex.IndexType.BLOOM).build())
.withAutoCommit(false).withProps(props);
.withAutoCommit(autoCommit).withProps(props);
Copy link
Member

Choose a reason for hiding this comment

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

but this will override this.. the withProps(). no?

Copy link
Member Author

Choose a reason for hiding this comment

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

@vinothchandar you're right. it was my overlook. But i guess this line is redundant anyway as index is default to BLOOM, setting the index config may cause some confusion.

Copy link
Member

Choose a reason for hiding this comment

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

ok makes sense

@xushiyan xushiyan changed the title [MINOR] Fix delta streamer write config [MINOR] Add validation error messages in delta sync Jun 11, 2020
@xushiyan xushiyan marked this pull request as ready for review June 11, 2020 03:51
Copy link
Member

@vinothchandar vinothchandar left a comment

Choose a reason for hiding this comment

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

Not to be nit-picky.. This PR just exceeded the 50 line threshold for minor.. Mind adding a ticket? :)

@xushiyan xushiyan changed the title [MINOR] Add validation error messages in delta sync [HUDI-1023] Add validation error messages in delta sync Jun 12, 2020
@xushiyan
Copy link
Member Author

@vinothchandar sure. ticket added.

@xushiyan
Copy link
Member Author

@vinothchandar Is this good to merge? :)

@vinothchandar
Copy link
Member

yes sir.. on it..

@vinothchandar vinothchandar merged commit 8a9fdd6 into apache:master Jun 19, 2020
@xushiyan xushiyan deleted the fix-deltrastreamer-index-config branch June 28, 2020 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants