bharatviswa504 opened a new pull request #2189:
URL: https://github.com/apache/ozone/pull/2189
## What changes were proposed in this pull request?
When hostname is having "." the regex is not matching properly with
suggested leader and fail over is failing with below exception.
```
Caused by: java.util.NoSuchElementException: No value present
at java.util.Optional.get(Optional.java:135)
at
org.apache.hadoop.hdds.scm.proxy.SCMBlockLocationFailoverProxyProvider.performFailoverToAssignedLeader(SCMBlockLocationFailoverProxyProvider.java:166)
at
org.apache.hadoop.hdds.scm.proxy.SCMBlockLocationFailoverProxyProvider$1.shouldRetry(SCMBlockLocationFailoverProxyProvider.java:273)
at
```
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-5152
## How was this patch tested?
Added tests
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]