-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-7275. Improve error logging when blocks cannot be allocated with RATIS THREE. #5189
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
Conversation
|
Thanks for improving this @SaketaChalamchala, this message has been confusing for users before. Could we also add a message summarizing why the allocation failed? For example, the log lines farther up in |
Done. |
errose28
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functionally LGTM just minor comments remaining.
...er-scm/src/main/java/org/apache/hadoop/hdds/scm/pipeline/WritableRatisContainerProvider.java
Outdated
Show resolved
Hide resolved
...er-scm/src/main/java/org/apache/hadoop/hdds/scm/pipeline/WritableRatisContainerProvider.java
Show resolved
Hide resolved
errose28
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this @SaketaChalamchala. CI will likely fail until #5217 is merged (should be soon). I will hold off running CI on this PR until that is resolved.
|
Looks like #5217 is not progressing as fast as I thought, I will go ahead with the CI on this PR. |
|
CI failures are fixed by #5217 |
…located with RATIS THREE. (apache#5189) (cherry picked from commit c5998ce) Change-Id: Ica0896fc6a7f0f2d0760948c14b5b284ff7f9df9
What changes were proposed in this pull request?
Current implementation returns a null and later on ScmBlockLocationProtocolServerSideTranslatorPB#allocateScmBlock() throws an exception with #blocks allocated and requested.
Proposed changed returns an exception when a block cannot be allocated after trying all possible strategies
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-7275
How was this patch tested?
Manual.