[
https://issues.apache.org/jira/browse/HDFS-14777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16928215#comment-16928215
]
Ayush Saxena commented on HDFS-14777:
-------------------------------------
Thanx Everyone for the work here. Was trying to fix HDFS-14833, Considering
that quota just doesn't sync, when locations are updated, but realized while
testing there is a problem after this in synchronization even on Quota update
in most cases. As the comparison is between the value in the update request and
the mount entry(*After the update command has been executed on the entry*). So
the entry is the updated entry wrt the update request so the values shall be
equal. The sync only can success when the cache hasn't been refreshed before
the comparison, which happens very randomly and is beyond control.
I guess the entry taken should have been taken before calling update, So as to
have a comparison.
Give a check [~elgoiri] [~surendrasingh] if it is so I will update it at
HDFS-14833. Prior apologies if I have messed up. :)
> RBF: Set ReadOnly is failing for mount Table but actually readonly succeed to
> set
> ---------------------------------------------------------------------------------
>
> Key: HDFS-14777
> URL: https://issues.apache.org/jira/browse/HDFS-14777
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Ranith Sardar
> Assignee: Ranith Sardar
> Priority: Major
> Fix For: 3.3.0
>
> Attachments: HDFS-14777.001.patch, HDFS-14777.002.patch,
> HDFS-14777.003.patch, HDFS-14777.004.patch
>
>
> # hdfs dfsrouteradmin -update /test hacluster /test -readonly /opt/client #
> hdfs dfsrouteradmin -update /test hacluster /test -readonly update: /test is
> in a read only mount
> pointorg.apache.hadoop.ipc.RemoteException(java.io.IOException): /test is in
> a read only mount point at
> org.apache.hadoop.hdfs.server.federation.router.RouterRpcServer.getLocationsForPath(RouterRpcServer.java:1419)
> at
> org.apache.hadoop.hdfs.server.federation.router.Quota.getQuotaRemoteLocations(Quota.java:217)
> at
> org.apache.hadoop.hdfs.server.federation.router.Quota.setQuota(Quota.java:75)
> at
> org.apache.hadoop.hdfs.server.federation.router.RouterAdminServer.synchronizeQuota(RouterAdminServer.java:288)
> at
> org.apache.hadoop.hdfs.server.federation.router.RouterAdminServer.updateMountTableEntry(RouterAdminServer.java:267)
--
This message was sent by Atlassian Jira
(v8.3.2#803003)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]