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

ShellServerIT.addauths fails to correctly deal with cached authorizations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.6.4, 1.7.1, 1.8.0
    • test
    • None

    Description

      Saw a test failure of ShellServerIT.addauths against 1.7.0 with the minicluster running with Kerberos in which the getauths command didn't contain the expected authorizations which were just added.

      The server-side getauths implementation returns the authorization for a user from ZooCache which means the client may not get a consistent view of the value. The test tries to work around this, retrying when an incorrect value is noticed after sleeping for a short time.

      The problem is that the catch block catches Exception while the test code throws AssertionError which isn't an Exception (but an Error). As such, the retry logic fails and the test will fail if the server doesn't see the cache update soon enough.

      Attachments

        Activity

          People

            elserj Josh Elser
            elserj Josh Elser
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 50m
                50m