You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Xiaoqiao He (Jira)" <ji...@apache.org> on 2020/12/10 13:50:00 UTC
[jira] [Updated] (HDFS-15723) RBF: invokeConcurrent may run
unexpected when enable standby read
[ https://issues.apache.org/jira/browse/HDFS-15723?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xiaoqiao He updated HDFS-15723:
-------------------------------
Attachment: HDFS-15723.001.patch
Assignee: Xiaoqiao He
Status: Patch Available (was: Open)
upload patch and pending Jenkins.
> RBF: invokeConcurrent may run unexpected when enable standby read
> -----------------------------------------------------------------
>
> Key: HDFS-15723
> URL: https://issues.apache.org/jira/browse/HDFS-15723
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: rbf
> Reporter: Xiaoqiao He
> Assignee: Xiaoqiao He
> Priority: Major
> Attachments: HDFS-15723.001.patch
>
>
> My colleague report that the following code segment has wrong parameter passed when create RemoteLocation instance.
> {code:java}
> if (standby) {
> // Call the objectGetter to all NNs (including standby)
> for (final FederationNamenodeContext nn : namenodes) {
> String nnId = nn.getNamenodeId();
> final List<FederationNamenodeContext> nnList =
> Collections.singletonList(nn);
> T nnLocation = location;
> if (location instanceof RemoteLocation) {
> nnLocation = (T)new RemoteLocation(nsId, nnId, location.getDest()); <-- wrong parameter passed.
> }
> orderedLocations.add(nnLocation);
> callables.add(
> () -> {
> transferThreadLocalContext(originCall, originContext);
> return invokeMethod(ugi, nnList, proto, m, paramList);
> });
> }
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org