Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-6555

Wait for permissions to sync in Permission tests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.2.0, 5.1.3
    • core
    • None

    Description

      We should do something better than adding retries whenever see another failure.

      From andrew.purtell@gmail.com on a mailing list thread:

      In the HBase security unit tests we wait for the zk mediated cache reload to complete before continuing the test. If you don’t do that your test will be flaky. Check that you are doing this.

      java.lang.reflect.UndeclaredThrowableException
      	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1747)
      	at org.apache.hadoop.hbase.security.User$SecureHadoopUser.runAs(User.java:347)
      	at org.apache.phoenix.end2end.BasePermissionsIT.verifyAllowed(BasePermissionsIT.java:787)
      	at org.apache.phoenix.end2end.BasePermissionsIT.verifyAllowed(BasePermissionsIT.java:780)
      	at org.apache.phoenix.end2end.BasePermissionsIT.lambda$testAutomaticGrantWithIndexAndView$5(BasePermissionsIT.java:1412)
      	at org.apache.phoenix.end2end.BasePermissionsIT.retryVerifyOperation(BasePermissionsIT.java:1035)
      	at org.apache.phoenix.end2end.BasePermissionsIT.testAutomaticGrantWithIndexAndView(BasePermissionsIT.java:1411)
      

      Attachments

        Issue Links

          Activity

            People

              stoty Istvan Toth
              stoty Istvan Toth
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: