You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Jimmy Xiang (JIRA)" <ji...@apache.org> on 2013/01/18 19:34:14 UTC

[jira] [Created] (HBASE-7623) Username is not available for HConnectionManager to use in HConnectionKey

Jimmy Xiang created HBASE-7623:
----------------------------------

             Summary: Username is not available for HConnectionManager to use in HConnectionKey
                 Key: HBASE-7623
                 URL: https://issues.apache.org/jira/browse/HBASE-7623
             Project: HBase
          Issue Type: Improvement
          Components: Client
            Reporter: Jimmy Xiang
            Priority: Minor


Sometimes, some non-IOException prevents User.getCurrent() to get a username.  It makes it impossible to create a HConnection.  We should catch all exception here:

{noformat}
      try {
        User currentUser = User.getCurrent();
        if (currentUser != null) {
          username = currentUser.getName();
        }
      } catch (IOException ioe) {
        LOG.warn("Error obtaining current user, skipping username in HConnectionKey",
            ioe);
      }
{noformat}

Not just IOException, so that client can move forward.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira