Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-2549

ShellTest sometimes fails because of order of authentication strings returned

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5.1
    • 1.5.2, 1.6.1, 1.7.0
    • client
    • None

    Description

      org.apache.accumulo.core.util.shell.ShellTest sometimes fails for me when run from the Maven command line. Tracing down, I see that line 154 (1.5.1 version) contains the following

          exec("getauths", true, "y,z,x");
      

      This test expects that the set of authorizations returns from the getauths command always come in the particular order "y,z,x". For whatever reason, on my machine, they came out in a different order ("x,y,z" for the record).

      My proposed fix (patch shortly) would be to have the test look for those individual label strings returned within the authorization string. I think this is a more accurate and future proof test than what's in there now.

      Attachments

        Activity

          People

            supermallen Michael Allen
            supermallen Michael Allen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: