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

Test race conditions in ShellServerIT

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.3, 1.8.0
    • Component/s: test
    • Labels:
      None

      Description

      Romil Choksi found a test issue where ShellServerIT.getAuths() would intermittently fail.

      This is because of the use of ZooCache inside of ZKAuthorizor. The minicluster has two tabletservers. If the shell is so unlucky to update the authorizations on one tserver but then ask for the authorizations on the other tserver, the test is subject to the propagation of the ZK watcher update to fire.

      We should just switch over ShellServerIT to run a minicluster with only one tserver than try to hack around this in the test itself with retries.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                elserj Josh Elser
                Reporter:
                elserj Josh Elser
              • Votes:
                0 Vote for this issue
                Watchers:
                2 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 - 1h 40m
                  1h 40m