Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-5781

Fix unit test failures to use tests config even if default config is available

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.11.0
    • 1.12.0
    • None

    Description

      Unit tests fail when they are run with the mapr profile.
      Tests failures, connected with the Zookeeper configuration that differs from expected:

      DrillClientTest>TestWithZookeeper.setUp:32 » Runtime java.io.IOException: Coul...
        TestZookeeperClient.testPutWithMatchingVersion » IO Could not configure server...
        TestZookeeperClient.tearDown:86 NullPointer
        TestZookeeperClient.testStartingClientEnablesCacheAndEnsuresRootNodeExists » IO
        TestZookeeperClient.tearDown:86 NullPointer
        TestZookeeperClient.testHasPathThrowsDrillRuntimeException » IO Could not conf...
        TestZookeeperClient.tearDown:86 NullPointer
        TestZookeeperClient.testHasPathFalseWithVersion » IO Could not configure serve...
        TestZookeeperClient.tearDown:86 NullPointer
        TestEphemeralStore.testPutAndGetWorksAntagonistacally » IO Could not configure...
        TestEphemeralStore.tearDown:132 NullPointer
        TestZookeeperClient.testGetWithVersion » IO Could not configure server because...
        TestZookeeperClient.tearDown:86 NullPointer
        TestEphemeralStore.testStoreRegistersDispatcherAndStartsItsClient » IO Could n...
        TestEphemeralStore.tearDown:132 NullPointer
        TestZookeeperClient.testPutWithNonMatchingVersion » IO Could not configure ser...
        TestZookeeperClient.tearDown:86 NullPointer
        TestZookeeperClient.testGetWithEventualConsistencyHitsCache » IO Could not con...
        TestZookeeperClient.tearDown:86 NullPointer
        TestZookeeperClient.testPutIfAbsentWhenPresent » IO Could not configure server...
        TestZookeeperClient.tearDown:86 NullPointer
        TestZookeeperClient.testHasPathTrueWithVersion » IO Could not configure server...
        TestZookeeperClient.tearDown:86 NullPointer
        TestZookeeperClient.testPutAndGetWorks » IO Could not configure server because...
        TestZookeeperClient.tearDown:86 NullPointer
        TestZookeeperClient.testPutIfAbsentWhenAbsent » IO Could not configure server ...
        TestZookeeperClient.tearDown:86 NullPointer
        TestZookeeperClient.testHasPathWithEventualConsistencyHitsCache » IO Could not...
        TestZookeeperClient.tearDown:86 NullPointer
        TestZookeeperClient.testCreate » IO Could not configure server because SASL co...
        TestZookeeperClient.tearDown:86 NullPointer
        TestZookeeperClient.testDelete » IO Could not configure server because SASL co...
        TestZookeeperClient.tearDown:86 NullPointer
        TestZookeeperClient.testEntriesReturnsRelativePaths » IO Could not configure s...
        TestZookeeperClient.tearDown:86 NullPointer
      TestPStoreProviders>TestWithZookeeper.setUp:32 » Runtime java.io.IOException: ...
        TestPauseInjection.pauseOnSpecificBit:151 » Runtime java.io.IOException: Could...
        TestExceptionInjection.injectionOnSpecificBit:217 » Runtime java.io.IOExceptio...
      
      HBaseTestsSuite.initCluster:110 » IO No JAAS configuration section named 'Serv...
      

      Test failures, connected with Hadoop configuration that differs from expected:

      TestInboundImpersonation.setup:58->BaseTestImpersonation.startMiniDfsCluster:80->BaseTestImpersonation.startMiniDfsCluster:111 » ClassCast
        TestImpersonationMetadata.setup:58->BaseTestImpersonation.startMiniDfsCluster:80->BaseTestImpersonation.startMiniDfsCluster:111 » ClassCast
        TestImpersonationDisabledWithMiniDFS.setup:37->BaseTestImpersonation.startMiniDfsCluster:106 » Runtime
        TestImpersonationQueries.setup:46->BaseTestImpersonation.startMiniDfsCluster:80->BaseTestImpersonation.startMiniDfsCluster:111 » ClassCast
      
      TestHiveStorage>HiveTestBase.generateHive:34 » Runtime java.lang.RuntimeExcept...
        TestInfoSchemaOnHiveStorage>HiveTestBase.generateHive:34 » Runtime java.lang.R...
        TestInbuiltHiveUDFs>HiveTestBase.generateHive:35 » ExecutionSetup Failure sett...
        TestSampleHiveUDFs>HiveTestBase.generateHive:35 » ExecutionSetup Failure setti...
        TestStorageBasedHiveAuthorization.setup:109->BaseTestImpersonation.startMiniDfsCluster:80->BaseTestImpersonation.startMiniDfsCluster:111 » ClassCast
        TestSqlStdBasedAuthorization.setup:72->BaseTestImpersonation.startMiniDfsCluster:80->BaseTestImpersonation.startMiniDfsCluster:111 » ClassCast
        TestHivePartitionPruning>HiveTestBase.generateHive:35 » ExecutionSetup Failure...
        TestViewSupportOnHiveTables.generateHive:35 » ExecutionSetup Failure setting u...
        TestHiveProjectPushDown>HiveTestBase.generateHive:35 » ExecutionSetup Failure ...
      

      Test specific configuration should be added to fix these failures.

      Attachments

        Issue Links

          Activity

            People

              volodymyr Vova Vysotskyi
              volodymyr Vova Vysotskyi
              Arina Ielchiieva Arina Ielchiieva
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: