KeeProMise commented on code in PR #6923:
URL: https://github.com/apache/hadoop/pull/6923#discussion_r1748371835
##########
hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterRpcClient.java:
##########
@@ -1175,6 +1177,7 @@ public <R extends RemoteLocationContext, T> RemoteResult
invokeSequential(
}
// Return the first result, whether it is the value or not
@SuppressWarnings("unchecked") T ret = (T) firstResult;
+ @SuppressWarnings("unchecked") R loc = (R) firstLocation;
return new RemoteResult<>(locations.get(0), ret);
Review Comment:
Hi, @hfutatzhanghb According to your explanation, maybe this should be
changed to:
```java
@SuppressWarnings("unchecked") R loc = (R) firstLocation;
return new RemoteResult<>(loc, ret);
```
--
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]