[ 
https://issues.apache.org/jira/browse/HDFS-13326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16408857#comment-16408857
 ] 

Wei Yan commented on HDFS-13326:
--------------------------------

{quote}-add option updates also.
{quote}
yes, I didn't scroll down to the see detailed implementation... 

But one interesting thing here, we cannot "switching a mount entry from 
readonly to non-readonly", or "removing a target path from a mount entry".

For readonly, currently it only supports updating from falst to true.
{code:java}
if (readonly) {
  existingEntry.setReadOnly(true);
}{code}
For target path, it will always tries to add new target locations.
{code:java}
for (String nsId : nss) {
  if (!existingEntry.addDestination(nsId, dest)) {
    System.err.println("Cannot add destination at " + nsId + " " + dest);
  }
}{code}

> RBF: router webUI's MountTable tab doesn't show "readonly" info
> ---------------------------------------------------------------
>
>                 Key: HDFS-13326
>                 URL: https://issues.apache.org/jira/browse/HDFS-13326
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Wei Yan
>            Assignee: Wei Yan
>            Priority: Minor
>
> So currently in the MountTable tab, the "readonly" field always show empty, 
> no matter whether the mount entry is readonly or not. From the code 
> perspective, it tries to show:
> {code:java}
> <td class="dfshealth-node-icon dfshealth-mount-read-only-{readonly}"/>{code}
> The federationhealth.html will load hadoop.css, however the hadoop.css 
> doesn't have classes with a prefix "dfshealth-mount-read-only".



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to