Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-7623

Username is not available for HConnectionManager to use in HConnectionKey

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • Client, security
    • None

    Description

      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:

            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);
            }
      

      Not just IOException, so that client can move forward.

      Attachments

        1. yogesh_bedekar.vcf
          0.2 kB
          yogesh bedekar
        2. yogesh_bedekar.vcf
          0.2 kB
          yogesh bedekar
        3. yogesh_bedekar.vcf
          0.2 kB
          yogesh bedekar
        4. yogesh_bedekar.vcf
          0.2 kB
          yogesh bedekar
        5. yogesh_bedekar.vcf
          0.2 kB
          yogesh bedekar
        6. yogesh_bedekar.vcf
          0.2 kB
          yogesh bedekar
        7. yogesh_bedekar.vcf
          0.2 kB
          yogesh bedekar
        8. trunk-7623.patch
          0.7 kB
          Jimmy Xiang
        9. pom.xml
          25 kB
          yogesh bedekar

        Activity

          People

            Unassigned Unassigned
            jxiang Jimmy Xiang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: