[ https://issues.apache.org/jira/browse/HADOOP-18122?focusedWorklogId=759500&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-759500 ]
ASF GitHub Bot logged work on HADOOP-18122: ------------------------------------------- Author: ASF GitHub Bot Created on: 20/Apr/22 18:58 Start Date: 20/Apr/22 18:58 Worklog Time Spent: 10m Work Description: virajith commented on code in PR #3987: URL: https://github.com/apache/hadoop/pull/3987#discussion_r854460871 ########## hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFs.java: ########## @@ -1466,5 +1476,27 @@ public void setStoragePolicy(Path path, String policyName) throws IOException { throw readOnlyMountTable("setStoragePolicy", path); } + + private FsPermission getMountLinkDefaultPermissions() { + return PERMISSION_555; + } + + private String getMountLinkUserName() { + if (mountLinkUserName != null) { + return mountLinkUserName; + } + String username = ugi.getShortUserName(); + mountLinkUserName = username; + return username; + } + + private String getMountLinkGroupName() throws IOException { + if (mountLinkGroupName != null) { + return mountLinkGroupName; + } + String groupname = ugi.getPrimaryGroupName(); + mountLinkGroupName = groupname; Review Comment: Tip for future - leave the comment unresolved so that the person who asked for the change can resolve it. It makes it easier for the reviewer to see what changed. Issue Time Tracking ------------------- Worklog Id: (was: 759500) Time Spent: 2.5h (was: 2h 20m) > ViewFileSystem fails on determining owning group when primary group doesn't > exist for user > ------------------------------------------------------------------------------------------ > > Key: HADOOP-18122 > URL: https://issues.apache.org/jira/browse/HADOOP-18122 > Project: Hadoop Common > Issue Type: Bug > Reporter: Chentao Yu > Assignee: Chentao Yu > Priority: Major > Labels: pull-request-available > Time Spent: 2.5h > Remaining Estimate: 0h > > ViewFileSystem should not fail on determining owning group when primary group > doesn't exist for user -- This message was sent by Atlassian Jira (v8.20.7#820007) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org