sadanand48 commented on code in PR #3795:
URL: https://github.com/apache/ozone/pull/3795#discussion_r985969499
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/TrashOzoneFileSystem.java:
##########
@@ -123,8 +126,15 @@ private void
submitRequest(OzoneManagerProtocolProtos.OMRequest omRequest)
@Override
public URI getUri() {
- throw new UnsupportedOperationException(
- "fs.getUri() not implemented in TrashOzoneFileSystem");
+ URI uri = null;
+ try {
+ uri = new URIBuilder().setScheme(OZONE_URI_SCHEME)
+ .setHost("ofs.trash")
Review Comment:
Let's not set a hostname here & set uri to a new URI object , something like
o3trash, as we are not using this anywhere and it is just to handle the
exception.
```java
public static final String OZONE_O3TRASH_URI_SCHEME = "o3trash";
```
--
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]