[ https://issues.apache.org/jira/browse/HIVE-21508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16923290#comment-16923290 ]
Hive QA commented on HIVE-21508: -------------------------------- Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12979417/HIVE-21508.branch-3.patch {color:red}ERROR:{color} -1 due to no test(s) being added or modified. {color:red}ERROR:{color} -1 due to 142 failed/errored test(s), 14408 tests executed *Failed tests:* {noformat} TestAddPartitions - did not produce a TEST-*.xml file (likely timed out) (batchId=228) TestAddPartitionsFromPartSpec - did not produce a TEST-*.xml file (likely timed out) (batchId=230) TestAdminUser - did not produce a TEST-*.xml file (likely timed out) (batchId=234) TestAggregateStatsCache - did not produce a TEST-*.xml file (likely timed out) (batchId=234) TestAlterPartitions - did not produce a TEST-*.xml file (likely timed out) (batchId=230) TestAlterTableMetadata - did not produce a TEST-*.xml file (likely timed out) (batchId=253) TestAppendPartitions - did not produce a TEST-*.xml file (likely timed out) (batchId=230) TestAutoPurgeTables - did not produce a TEST-*.xml file (likely timed out) (batchId=253) TestBeeLineDriver - did not produce a TEST-*.xml file (likely timed out) (batchId=275) TestCachedStore - did not produce a TEST-*.xml file (likely timed out) (batchId=238) TestCatalogCaching - did not produce a TEST-*.xml file (likely timed out) (batchId=238) TestCatalogNonDefaultClient - did not produce a TEST-*.xml file (likely timed out) (batchId=228) TestCatalogNonDefaultSvr - did not produce a TEST-*.xml file (likely timed out) (batchId=234) TestCatalogOldClient - did not produce a TEST-*.xml file (likely timed out) (batchId=228) TestCatalogs - did not produce a TEST-*.xml file (likely timed out) (batchId=230) TestCheckConstraint - did not produce a TEST-*.xml file (likely timed out) (batchId=228) TestCloseableThreadLocal - did not produce a TEST-*.xml file (likely timed out) (batchId=334) TestDataSourceProviderFactory - did not produce a TEST-*.xml file (likely timed out) (batchId=238) TestDatabases - did not produce a TEST-*.xml file (likely timed out) (batchId=230) TestDeadline - did not produce a TEST-*.xml file (likely timed out) (batchId=238) TestDefaultConstraint - did not produce a TEST-*.xml file (likely timed out) (batchId=230) TestDropPartitions - did not produce a TEST-*.xml file (likely timed out) (batchId=228) TestDummy - did not produce a TEST-*.xml file (likely timed out) (batchId=275) TestEmbeddedHiveMetaStore - did not produce a TEST-*.xml file (likely timed out) (batchId=231) TestExchangePartitions - did not produce a TEST-*.xml file (likely timed out) (batchId=230) TestFMSketchSerialization - did not produce a TEST-*.xml file (likely timed out) (batchId=239) TestFilterHooks - did not produce a TEST-*.xml file (likely timed out) (batchId=228) TestForeignKey - did not produce a TEST-*.xml file (likely timed out) (batchId=230) TestFunctions - did not produce a TEST-*.xml file (likely timed out) (batchId=228) TestGetPartitions - did not produce a TEST-*.xml file (likely timed out) (batchId=230) TestGetPartitionsUsingProjectionAndFilterSpecs - did not produce a TEST-*.xml file (likely timed out) (batchId=230) TestGetTableMeta - did not produce a TEST-*.xml file (likely timed out) (batchId=228) TestHLLNoBias - did not produce a TEST-*.xml file (likely timed out) (batchId=239) TestHLLSerialization - did not produce a TEST-*.xml file (likely timed out) (batchId=239) TestHdfsUtils - did not produce a TEST-*.xml file (likely timed out) (batchId=234) TestHiveAlterHandler - did not produce a TEST-*.xml file (likely timed out) (batchId=228) TestHiveMetaStoreGetMetaConf - did not produce a TEST-*.xml file (likely timed out) (batchId=238) TestHiveMetaStorePartitionSpecs - did not produce a TEST-*.xml file (likely timed out) (batchId=230) TestHiveMetaStoreSchemaMethods - did not produce a TEST-*.xml file (likely timed out) (batchId=238) TestHiveMetaStoreTimeout - did not produce a TEST-*.xml file (likely timed out) (batchId=238) TestHiveMetaStoreTxns - did not produce a TEST-*.xml file (likely timed out) (batchId=238) TestHiveMetaStoreWithEnvironmentContext - did not produce a TEST-*.xml file (likely timed out) (batchId=233) TestHiveMetaToolCommandLine - did not produce a TEST-*.xml file (likely timed out) (batchId=234) TestHiveMetastoreCli - did not produce a TEST-*.xml file (likely timed out) (batchId=228) TestHmsServerAuthorization - did not produce a TEST-*.xml file (likely timed out) (batchId=234) TestHyperLogLog - did not produce a TEST-*.xml file (likely timed out) (batchId=239) TestHyperLogLogDense - did not produce a TEST-*.xml file (likely timed out) (batchId=239) TestHyperLogLogMerge - did not produce a TEST-*.xml file (likely timed out) (batchId=239) TestHyperLogLogSparse - did not produce a TEST-*.xml file (likely timed out) (batchId=239) TestJSONMessageDeserializer - did not produce a TEST-*.xml file (likely timed out) (batchId=234) TestKuduCliDriver - did not produce a TEST-*.xml file (likely timed out) (batchId=266) TestKuduInputFormat - did not produce a TEST-*.xml file (likely timed out) (batchId=332) TestKuduNegativeCliDriver - did not produce a TEST-*.xml file (likely timed out) (batchId=266) TestKuduOutputFormat - did not produce a TEST-*.xml file (likely timed out) (batchId=332) TestKuduPredicateHandler - did not produce a TEST-*.xml file (likely timed out) (batchId=332) TestKuduSerDe - did not produce a TEST-*.xml file (likely timed out) (batchId=332) TestListPartitions - did not produce a TEST-*.xml file (likely timed out) (batchId=228) TestLocationQueries - did not produce a TEST-*.xml file (likely timed out) (batchId=253) TestLockRequestBuilder - did not produce a TEST-*.xml file (likely timed out) (batchId=228) TestMarkPartition - did not produce a TEST-*.xml file (likely timed out) (batchId=238) TestMarkPartitionRemote - did not produce a TEST-*.xml file (likely timed out) (batchId=238) TestMetaStoreConnectionUrlHook - did not produce a TEST-*.xml file (likely timed out) (batchId=234) TestMetaStoreEndFunctionListener - did not produce a TEST-*.xml file (likely timed out) (batchId=230) TestMetaStoreEventListener - did not produce a TEST-*.xml file (likely timed out) (batchId=235) TestMetaStoreEventListenerOnlyOnCommit - did not produce a TEST-*.xml file (likely timed out) (batchId=238) TestMetaStoreEventListenerWithOldConf - did not produce a TEST-*.xml file (likely timed out) (batchId=238) TestMetaStoreInitListener - did not produce a TEST-*.xml file (likely timed out) (batchId=238) TestMetaStoreListenersError - did not produce a TEST-*.xml file (likely timed out) (batchId=238) TestMetaStoreSchemaFactory - did not produce a TEST-*.xml file (likely timed out) (batchId=234) TestMetaStoreSchemaInfo - did not produce a TEST-*.xml file (likely timed out) (batchId=238) TestMetaStoreServerUtils - did not produce a TEST-*.xml file (likely timed out) (batchId=234) TestMetaToolTaskExecuteJDOQLQuery - did not produce a TEST-*.xml file (likely timed out) (batchId=234) TestMetaToolTaskListFSRoot - did not produce a TEST-*.xml file (likely timed out) (batchId=234) TestMetaToolTaskUpdateLocation - did not produce a TEST-*.xml file (likely timed out) (batchId=234) TestMetastoreConf - did not produce a TEST-*.xml file (likely timed out) (batchId=230) TestMetastoreSchemaTool - did not produce a TEST-*.xml file (likely timed out) (batchId=234) TestMetrics - did not produce a TEST-*.xml file (likely timed out) (batchId=230) TestMiniDruidCliDriver - did not produce a TEST-*.xml file (likely timed out) (batchId=275) TestMiniDruidKafkaCliDriver - did not produce a TEST-*.xml file (likely timed out) (batchId=275) TestMinimrCliDriver - did not produce a TEST-*.xml file (likely timed out) (batchId=96) [infer_bucket_sort_num_buckets.q,infer_bucket_sort_reducers_power_two.q,parallel_orderby.q,bucket_num_reducers_acid.q,scriptfile1.q,infer_bucket_sort_map_operators.q,infer_bucket_sort_merge.q,root_dir_external_table.q,infer_bucket_sort_dyn_part.q,udf_using.q] TestMsckCheckPartitions - did not produce a TEST-*.xml file (likely timed out) (batchId=234) TestNotNullConstraint - did not produce a TEST-*.xml file (likely timed out) (batchId=230) TestObjectStore - did not produce a TEST-*.xml file (likely timed out) (batchId=238) TestObjectStoreInitRetry - did not produce a TEST-*.xml file (likely timed out) (batchId=234) TestObjectStoreSchemaMethods - did not produce a TEST-*.xml file (likely timed out) (batchId=238) TestObjectStoreStatementVerify - did not produce a TEST-*.xml file (likely timed out) (batchId=230) TestOldSchema - did not produce a TEST-*.xml file (likely timed out) (batchId=238) TestPartitionManagement - did not produce a TEST-*.xml file (likely timed out) (batchId=228) TestPartitionNameWhitelistValidation - did not produce a TEST-*.xml file (likely timed out) (batchId=230) TestPartitionProjectionEvaluator - did not produce a TEST-*.xml file (likely timed out) (batchId=239) TestPreUpgradeTool - did not produce a TEST-*.xml file (likely timed out) (batchId=334) TestPrimaryKey - did not produce a TEST-*.xml file (likely timed out) (batchId=230) TestRawStoreProxy - did not produce a TEST-*.xml file (likely timed out) (batchId=228) TestRemoteHiveMetaStore - did not produce a TEST-*.xml file (likely timed out) (batchId=232) TestRemoteHiveMetaStoreIpAddress - did not produce a TEST-*.xml file (likely timed out) (batchId=226) TestRemoteHiveMetaStoreZK - did not produce a TEST-*.xml file (likely timed out) (batchId=234) TestRemoteHiveMetaStoreZKBindHost - did not produce a TEST-*.xml file (likely timed out) (batchId=238) TestRemoteUGIHiveMetaStoreIpAddress - did not produce a TEST-*.xml file (likely timed out) (batchId=236) TestReplicationScenariosAcidTables - did not produce a TEST-*.xml file (likely timed out) (batchId=253) TestRetriesInRetryingHMSHandler - did not produce a TEST-*.xml file (likely timed out) (batchId=239) TestRetryingHMSHandler - did not produce a TEST-*.xml file (likely timed out) (batchId=234) TestRunOptions - did not produce a TEST-*.xml file (likely timed out) (batchId=334) TestRuntimeStats - did not produce a TEST-*.xml file (likely timed out) (batchId=228) TestSchemaToolForMetastore - did not produce a TEST-*.xml file (likely timed out) (batchId=234) TestSchemaToolTaskDrop - did not produce a TEST-*.xml file (likely timed out) (batchId=234) TestSemanticAnalyzerHookLoading - did not produce a TEST-*.xml file (likely timed out) (batchId=253) TestSetUGIOnBothClientServer - did not produce a TEST-*.xml file (likely timed out) (batchId=229) TestSetUGIOnOnlyClient - did not produce a TEST-*.xml file (likely timed out) (batchId=227) TestSetUGIOnOnlyServer - did not produce a TEST-*.xml file (likely timed out) (batchId=237) TestSparkStatistics - did not produce a TEST-*.xml file (likely timed out) (batchId=253) TestSparseEncodeHash - did not produce a TEST-*.xml file (likely timed out) (batchId=239) TestStats - did not produce a TEST-*.xml file (likely timed out) (batchId=230) TestStatsSetupConst - did not produce a TEST-*.xml file (likely timed out) (batchId=239) TestTableIterable - did not produce a TEST-*.xml file (likely timed out) (batchId=238) TestTablesCreateDropAlterTruncate - did not produce a TEST-*.xml file (likely timed out) (batchId=228) TestTablesGetExists - did not produce a TEST-*.xml file (likely timed out) (batchId=230) TestTablesList - did not produce a TEST-*.xml file (likely timed out) (batchId=228) TestTezPerfCliDriver - did not produce a TEST-*.xml file (likely timed out) (batchId=275) TestTxnHandlerNegative - did not produce a TEST-*.xml file (likely timed out) (batchId=228) TestTxnUtils - did not produce a TEST-*.xml file (likely timed out) (batchId=228) TestUniqueConstraint - did not produce a TEST-*.xml file (likely timed out) (batchId=228) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[load_static_ptn_into_bucketed_table] (batchId=21) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[mm_all] (batchId=71) org.apache.hadoop.hive.cli.TestMiniLlapCliDriver.testCliDriver[mm_all] (batchId=154) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[current_date_timestamp] (batchId=169) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[external_jdbc_auth] (batchId=161) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[load_data_using_job] (batchId=160) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[multi_in_clause] (batchId=176) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[results_cache_2] (batchId=179) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[sharedwork] (batchId=176) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[subquery_views] (batchId=160) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[sysdb] (batchId=167) org.apache.hadoop.hive.cli.TestMiniSparkOnYarnCliDriver.org.apache.hadoop.hive.cli.TestMiniSparkOnYarnCliDriver (batchId=187) org.apache.hadoop.hive.cli.TestMiniSparkOnYarnCliDriver.org.apache.hadoop.hive.cli.TestMiniSparkOnYarnCliDriver (batchId=188) org.apache.hadoop.hive.cli.TestMiniSparkOnYarnCliDriver.org.apache.hadoop.hive.cli.TestMiniSparkOnYarnCliDriver (batchId=189) org.apache.hadoop.hive.cli.TestMiniSparkOnYarnCliDriver.org.apache.hadoop.hive.cli.TestMiniSparkOnYarnCliDriver (batchId=190) org.apache.hadoop.hive.cli.TestNegativeCliDriver.testCliDriver[subquery_subquery_chain] (batchId=97) org.apache.hadoop.hive.cli.TestSparkCliDriver.testCliDriver[auto_sortmerge_join_12] (batchId=124) org.apache.hadoop.hive.ql.TestWarehouseExternalDir.testManagedPaths (batchId=251) org.apache.hadoop.hive.ql.parse.TestSQL11ReservedKeyWordsNegative$TestSQL11ReservedKeyWordsNegativeParametrized.testNegative[REAL] (batchId=303) org.apache.hive.service.TestHS2ImpersonationWithRemoteMS.testImpersonation (batchId=259) org.apache.hive.spark.client.rpc.TestRpc.testServerPort (batchId=327) {noformat} Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/18451/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/18451/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-18451/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.YetusPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 142 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12979417 - PreCommit-HIVE-Build > ClassCastException when initializing HiveMetaStoreClient on JDK10 or newer > -------------------------------------------------------------------------- > > Key: HIVE-21508 > URL: https://issues.apache.org/jira/browse/HIVE-21508 > Project: Hive > Issue Type: Bug > Components: Clients > Affects Versions: 3.2.0, 2.3.4 > Reporter: Adar Dembo > Assignee: Ana Jalba > Priority: Major > Fix For: 2.4.0, 3.2.0, 2.3.7 > > Attachments: HIVE-21508.patch > > > There's this block of code in {{HiveMetaStoreClient:resolveUris}} (called > from the constructor) on master: > {noformat} > private URI metastoreUris[]; > ... > if (MetastoreConf.getVar(conf, > ConfVars.THRIFT_URI_SELECTION).equalsIgnoreCase("RANDOM")) { > List uriList = Arrays.asList(metastoreUris); > Collections.shuffle(uriList); > metastoreUris = (URI[]) uriList.toArray(); > } > {noformat} > The cast to {{URI[]}} throws a {{ClassCastException}} beginning with JDK 10, > possibly with JDK 9 as well. Note that {{THRIFT_URI_SELECTION}} defaults to > {{RANDOM}} so this should affect anyone who creates a > {{HiveMetaStoreClient}}. On master this can be overridden with {{SEQUENTIAL}} > to avoid the broken case; I'm working against 2.3.4 where there's no such > workaround. > [Here's|https://stackoverflow.com/questions/51372788/array-cast-java-8-vs-java-9] > a StackOverflow post that explains the issue in more detail. Interestingly, > the author described the issue in the context of the HMS; not sure why there > was no follow up with a Hive bug report. -- This message was sent by Atlassian Jira (v8.3.2#803003)