[ 
https://issues.apache.org/jira/browse/HDFS-17567?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

farmmamba updated HDFS-17567:
-----------------------------
    Description: 
Below code is the return value in method RouterRpcClient#invokeSequential.

 
{code:java}
// Return the first result, whether it is the value or not
@SuppressWarnings("unchecked") T ret = (T) firstResult;
return new RemoteResult<>(locations.get(0), ret); {code}
 

 

`locations.get(0)` is not accurate, because it may not be the remote location 
where ret was returned.

> Return value of method RouterRpcClient#invokeSequential is not accurate
> -----------------------------------------------------------------------
>
>                 Key: HDFS-17567
>                 URL: https://issues.apache.org/jira/browse/HDFS-17567
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: rbf
>    Affects Versions: 3.4.0
>            Reporter: farmmamba
>            Assignee: farmmamba
>            Priority: Major
>
> Below code is the return value in method RouterRpcClient#invokeSequential.
>  
> {code:java}
> // Return the first result, whether it is the value or not
> @SuppressWarnings("unchecked") T ret = (T) firstResult;
> return new RemoteResult<>(locations.get(0), ret); {code}
>  
>  
> `locations.get(0)` is not accurate, because it may not be the remote location 
> where ret was returned.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to