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

HDDS-7108. Include supported EC data-parity combinations in error message #3665

Merged
merged 14 commits into from Aug 19, 2022

Conversation

DaveTeng0
Copy link
Contributor

What changes were proposed in this pull request?

Need proper error message on console output when incorrect replication data-parity config is passed

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-7108

How was this patch tested?

Manually test from developer machine

@DaveTeng0
Copy link
Contributor Author

@umamaheswararao @kerneltime Feel free to take a look if the added message helps! Thanks!

@kerneltime
Copy link
Contributor

LGTM, please address failing CI tests

@DaveTeng0
Copy link
Contributor Author

LGTM, please address failing CI tests

sure! looking

@DaveTeng0 DaveTeng0 changed the title Add proper error message on console output when incorrect replication data-parity config is passed HDDS-7108: Add proper error message on console output when incorrect replication data-parity config is passed Aug 10, 2022
@DaveTeng0 DaveTeng0 changed the title HDDS-7108: Add proper error message on console output when incorrect replication data-parity config is passed HDDS-7108. Add proper error message on console output when incorrect replication data-parity config is passed Aug 10, 2022
@adoroszlai adoroszlai changed the title HDDS-7108. Add proper error message on console output when incorrect replication data-parity config is passed HDDS-7108. Include supported EC data-parity combinations in error message Aug 19, 2022
@kerneltime kerneltime merged commit e968976 into apache:master Aug 19, 2022
@kerneltime
Copy link
Contributor

Thank you, @DaveTeng0 for this patch.

Comment on lines +65 to +68
"Invalid data-parity replication config " +
"for type " + replicationConfig.getReplicationType() +
" and replication " + replication + "." +
" Supported data-parity are 3-2,6-3,10-4");
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry for the late review.

This exception may be thrown for non-EC replication config, too, in which case data-parity is not applicable. The message should be different based on replication type.

CLI commands validate RATIS replication factor before reaching this check, but Java code using RpcClient#createKey directly could encounter this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants