Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-1164

Fix testCaseSensitivity test failure on a real cluster

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.7.0
    • 1.7.0
    • Sentry
    • None

    Description

      Failed
      
      org.apache.sentry.tests.e2e.dbprovider.TestDbOperations.testCaseSensitivity
      
      Failing for the past 4 builds (Since Unstable#4436 )
      Took 2.4 sec.
      add description
      Error Message
      
      URI '/tmp/hive/ABC/hhh' is invalid. Unsupport URI without schema or relative URI.
      Stacktrace
      
      java.lang.IllegalArgumentException: URI '/tmp/hive/ABC/hhh' is invalid. Unsupport URI without schema or relative URI.
      	at org.apache.sentry.core.model.db.AccessURI.<init>(AccessURI.java:40)
      	at org.apache.sentry.policy.db.DBModelAuthorizables.from(DBModelAuthorizables.java:62)
      	at org.apache.sentry.policy.db.DBModelAuthorizables.from(DBModelAuthorizables.java:37)
      	at org.apache.sentry.policy.db.DBModelAuthorizables.from(DBModelAuthorizables.java:46)
      	at org.apache.sentry.tests.e2e.hive.AbstractTestWithStaticConfiguration.addPrivilege(AbstractTestWithStaticConfiguration.java:372)
      	at org.apache.sentry.tests.e2e.hive.AbstractTestWithStaticConfiguration.grantPermissions(AbstractTestWithStaticConfiguration.java:347)
      	at org.apache.sentry.tests.e2e.hive.AbstractTestWithStaticConfiguration.writePolicyFile(AbstractTestWithStaticConfiguration.java:320)
      	at org.apache.sentry.tests.e2e.hive.TestOperations.testCaseSensitivity(TestOperations.java:764)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
      	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      

      Attachments

        1. SENTRY-1164.0.patch
          12 kB
          Anne Yu
        2. SENTRY-1164.1.patch
          11 kB
          Anne Yu
        3. SENTRY-1164.2.patch
          12 kB
          Anne Yu

        Issue Links

          Activity

            People

              anneyu Anne Yu
              anneyu Anne Yu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: