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-2910. OzoneManager startup failure with throwing unhelpful excep… #461

Closed
wants to merge 2 commits into from

Conversation

linyiqun
Copy link
Contributor

@linyiqun linyiqun commented Jan 19, 2020

What changes were proposed in this pull request?

Add more helpful message in exception, so that it can quickly guide users how to resolve the issue in starting up OM service.

What is the link to the Apache JIRA

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

How was this patch tested?

Just the log message update change, no need to do the test.

@@ -335,7 +335,9 @@ private OzoneManager(OzoneConfiguration conf) throws IOException,
OZONE_OM_USER_MAX_VOLUME + " value should be greater than zero");

if (omStorage.getState() != StorageState.INITIALIZED) {
throw new OMException("OM not initialized.",
throw new OMException("OM not initialized, current OM storage state: " +
omStorage.getState().name() + ". Please check if 'ozone om --init' "
Copy link
Contributor

@xiaoyuyao xiaoyuyao Jan 20, 2020

Choose a reason for hiding this comment

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

Thanks @linyiqun for the improvement.
Can we rephrase "Please check if 'ozone om --init' command is executed before starting the OM service." to
Please ensure 'ozone om --init' command is executed once before starting the OM service.",

Otherwise, LGTM.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @xiaoyuyao for the review. Have addressed the comment now.

Copy link
Member

@elek elek left a comment

Choose a reason for hiding this comment

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

+1 Thanks the patch @linyiqun. I very appreciate when usability is improved.

And thanks the review @xiaoyuyao I will merge it soon...

@elek elek closed this in 968ec62 Jan 20, 2020
@linyiqun
Copy link
Contributor Author

Thanks for the review and merge, @elek !

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