xiaoyuyao commented on a change in pull request #696: HDDS-3056. Allow users to
list volumes they have access to, and optionally allow all users to list all
volumes
URL: https://github.com/apache/hadoop-ozone/pull/696#discussion_r409977210
##########
File path:
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/VolumeManagerImpl.java
##########
@@ -453,23 +449,11 @@ public boolean checkVolumeAccess(String volume,
OzoneAclInfo userAcl)
@Override
public List<OmVolumeArgs> listVolumes(String userName,
String prefix, String startKey, int maxKeys) throws IOException {
- metadataManager.getLock().acquireLock(USER_LOCK, userName);
+ metadataManager.getLock().acquireWriteLock(USER_LOCK, userName);
Review comment:
I think we should change it to acquireReadLock.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]