aswinshakil opened a new pull request, #3529:
URL: https://github.com/apache/ozone/pull/3529

   ## What changes were proposed in this pull request?
   
   When `allocateBlock()` fails, It throws a generic SCMException `Allocated 0 
blocks. Requested 1 blocks`. Here the block allocation failed because there 
weren't enough DataNodes for EC replication. Proposing to throw an exception 
when `allocateContainer()` fails and propagate back the actual Exception. 
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-6812
   
   ## How was this patch tested?
   
   This patch was tested manually with docker and Unit test. Now the error 
message is,
   ```
   INTERNAL_ERROR No enough datanodes to choose. TotalNode = 3 AvailableNode = 
3 RequiredNode = 5 ExcludedNode = 0
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to