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 "Xiping Zhang (Jira)" <ji...@apache.org> on 2022/06/10 02:56:00 UTC

[jira] [Commented] (HDFS-16628) RBF: kerbose user remove Non-default namespace data failed

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

Xiping Zhang commented on HDFS-16628:
-------------------------------------

MountTableResolver.java

 
{code:java}
//代码占位符
@VisibleForTesting
public static String getTrashRoot() throws IOException {
  // Gets the Trash directory for the current user.
  return FileSystem.USER_HOME_PREFIX + "/" +
      RouterRpcServer.getRemoteUser().getUserName() + "/" +   // should get shortUserName
        FileSystem.TRASH_PREFIX;
} {code}
 

Should be consistent with FileSytem.java
{code:java}
//代码占位符
/** Return the current user's home directory in this FileSystem.
 * The default implementation returns {@code "/user/$USER/"}.
 */
public Path getHomeDirectory() {
  String username;
  try {
    username = UserGroupInformation.getCurrentUser().getShortUserName();
  } catch(IOException ex) {
    LOGGER.warn("Unable to get user name. Fall back to system property " +
        "user.name", ex);
    username = System.getProperty("user.name");
  }
  return this.makeQualified(
      new Path(USER_HOME_PREFIX + "/" + username));
} {code}
 

> RBF: kerbose user remove Non-default namespace data failed
> ----------------------------------------------------------
>
>                 Key: HDFS-16628
>                 URL: https://issues.apache.org/jira/browse/HDFS-16628
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: rbf
>            Reporter: Xiping Zhang
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org