Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-15763 Über-JIRA: abfs phase II: Hadoop 3.3 features & fixes
  3. HADOOP-16687

ABFS: Fix testcase added for HADOOP-16138 for namespace enabled account

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0
    • fs/azure
    • None
    • Reviewed

    Description

      Test added as part of HADOOP-16138 : testMkdirRootNonExistentContainer() fails at setup when run with a namespace enabled account (as GetAclStatus call gets called in setup. For a non-namespace account, GetAclStatus being an invalid operation will return 400 Bad request which is handled in base test class.)

       

      Operation failed: "The specified filesystem does not exist.", 404, HEAD, https://snvijayacontracttest.dfs.core.windows.net/abfs-testcontainer-998ff709-31b7-4d9e-bbaa-ae4c026d8500//?upn=false&action=getAccessControl&timeout=90Operation failed: "The specified filesystem does not exist.", 404, HEAD, https://snvijayacontracttest.dfs.core.windows.net/abfs-testcontainer-998ff709-31b7-4d9e-bbaa-ae4c026d8500//?upn=false&action=getAccessControl&timeout=90
      at org.apache.hadoop.fs.azurebfs.services.AbfsRestOperation.execute(AbfsRestOperation.java:138) at org.apache.hadoop.fs.azurebfs.services.AbfsClient.getAclStatus(AbfsClient.java:516) at org.apache.hadoop.fs.azurebfs.services.AbfsClient.getAclStatus(AbfsClient.java:499) at org.apache.hadoop.fs.azurebfs.AzureBlobFileSystemStore.getIsNamespaceEnabled(AzureBlobFileSystemStore.java:216) at org.apache.hadoop.fs.azurebfs.AzureBlobFileSystem.getIsNamespaceEnabled(AzureBlobFileSystem.java:1108) at org.apache.hadoop.fs.azurebfs.AbstractAbfsIntegrationTest.setup(AbstractAbfsIntegrationTest.java:137) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298) at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.lang.Thread.run(Thread.java:748)

      Even when run over with a non namespace enabled account, the test teardown has failures, though not reported as a test failure. 

      Operation failed: "The specified filesystem does not exist.", 404, DELETE, https://snvijayaabfsnons.dfs.core.windows.net/abfs-testcontainer-bf33194a-6fcb-46b9-a0fa-7f458e9a6564?resource=filesystem&timeout=90, FilesystemNotFound, "The specified filesystem does not exist. RequestId:48c592a5-901f-0049-4671-940f4b000000 Time:2019-11-06T07:09:44.5098782Z"Operation failed: "The specified filesystem does not exist.", 404, DELETE, https://snvijayaabfsnons.dfs.core.windows.net/abfs-testcontainer-bf33194a-6fcb-46b9-a0fa-7f458e9a6564?resource=filesystem&timeout=90, FilesystemNotFound, "The specified filesystem does not exist. RequestId:48c592a5-901f-0049-4671-940f4b000000 Time:2019-11-06T07:09:44.5098782Z" 
      at org.apache.hadoop.fs.azurebfs.services.AbfsRestOperation.execute(AbfsRestOperation.java:138) at org.apache.hadoop.fs.azurebfs.services.AbfsClient.deleteFilesystem(AbfsClient.java:225) at org.apache.hadoop.fs.azurebfs.AzureBlobFileSystemStore.deleteFilesystem(AzureBlobFileSystemStore.java:342) at org.apache.hadoop.fs.azurebfs.AbstractAbfsIntegrationTest.teardown(AbstractAbfsIntegrationTest.java:171) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33) at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298) at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.lang.Thread.run(Thread.java:748)

       

      Attachments

        Issue Links

          Activity

            People

              snvijaya Sneha Vijayarajan
              snvijaya Sneha Vijayarajan
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: