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

Phoenix Query server tests race condition issue on creating keytab folder

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • queryserver-6.0.0
    • queryserver
    • None

    Description

      The two recently modified tests: 

      • org.apache.phoenix.end2end.HttpParamImpersonationQueryServerIT
      • org.apache.phoenix.end2end.SecureQueryServerIT

      Share the same logic to construct a kerberos configuration folder and run a mini kerberized cluser. Which could run into race condition when one deletes the folder while the other is trying to use it to set up it's cluster.

       

      [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.007 s <<< FAILURE! - in org.apache.phoenix.end2end.SecureQueryServerIT
      [ERROR] org.apache.phoenix.end2end.SecureQueryServerIT Time elapsed: 0.007 s <<< ERROR!
      java.io.IOException: Login failure for securecluster/localhost@EXAMPLE.COM from keytab /Users/msalarkia/workspace/apache-phoenix/phoenix-queryserver/target/AbstractKerberisedTest/keytabs/test.keytab: javax.security.auth.login.LoginException: Checksum failed
      at org.apache.phoenix.end2end.SecureQueryServerIT.setUp(SecureQueryServerIT.java:53)
      Caused by: javax.security.auth.login.LoginException: Checksum failed
      at org.apache.phoenix.end2end.SecureQueryServerIT.setUp(SecureQueryServerIT.java:53)
      Caused by: sun.security.krb5.KrbCryptoException: Checksum failed
      at org.apache.phoenix.end2end.SecureQueryServerIT.setUp(SecureQueryServerIT.java:53)
      Caused by: java.security.GeneralSecurityException: Checksum failed
      at org.apache.phoenix.end2end.SecureQueryServerIT.setUp(SecureQueryServerIT.java:53)
      

       

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            m2je Mehdi Salarkia
            m2je Mehdi Salarkia
            Votes:
            0 Vote for this issue
            Watchers:
            4 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 - 20m
                20m

                Issue deployment