Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-15455

Incorrect debug message in KMSACL#hasAccess

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.9.0
    • 3.2.0
    • None
    • None

    Description

      If the user is in the blacklist "foo bar", it prints "user is not in foo bar".
      else, it prints "user is in foo bar"

      KMSACLs#hasAccess()
      if (access) {
            AccessControlList blacklist = blacklistedAcls.get(type);
            access = (blacklist == null) || !blacklist.isUserInList(ugi);
            if (LOG.isDebugEnabled()) {
              if (blacklist == null) {
                LOG.debug("No blacklist for {}", type.toString());
              } else if (access) {
                LOG.debug("user is in {}" , blacklist.getAclString());
              } else {
                LOG.debug("user is not in {}" , blacklist.getAclString());
              }
            }
          }
      

      Attachments

        1. HADOOP-15455.001.patch
          0.9 kB
          Wei-Chiu Chuang

        Issue Links

          Activity

            People

              study Yuen-Kuei Hsueh
              weichiu Wei-Chiu Chuang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: