Bug: ThriftServerQueryTestSuite failed during the Maven daily test
Status: Resolved | Priority: Major | Resolution: Fixed
Created: 26/Jul/24 09:36
Affects Version/s: 4.0.0

{code:java}
- sql-on-files.sql *** FAILED ***
22911  "" did not contain "Exception" Exception did not match for query #6
22912  CREATE TABLE sql_on_files.test_orc USING ORC AS SELECT 1, expected: , but got: java.sql.SQLException
22913  org.apache.hive.service.cli.HiveSQLException: Error running query: org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 8542.0 failed 1 times, most recent failure: Lost task 0.0 in stage 8542.0 (TID 8594) (localhost executor driver): java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider
22914  	at test.org.apache.spark.sql.execution.datasources.orc.FakeKeyProvider$Factory.createProvider(FakeKeyProvider.java:127)
22915  	at org.apache.hadoop.crypto.key.KeyProviderFactory.get(KeyProviderFactory.java:96)
22916  	at org.apache.hadoop.crypto.key.KeyProviderFactory.getProviders(KeyProviderFactory.java:68)
22917  	at org.apache.orc.impl.HadoopShimsCurrent.createKeyProvider(HadoopShimsCurrent.java:97)
22918  	at org.apache.orc.impl.HadoopShimsCurrent.getHadoopKeyProvider(HadoopShimsCurrent.java:131)
22919  	at org.apache.orc.impl.CryptoUtils$HadoopKeyProviderFactory.create(CryptoUtils.java:158)
22920  	at org.apache.orc.impl.CryptoUtils.getKeyProvider(CryptoUtils.java:141)
22921  	at org.apache.orc.impl.WriterImpl.setupEncryption(WriterImpl.java:1015)
22922  	at org.apache.orc.impl.WriterImpl.<init>(WriterImpl.java:164)
22923  	at org.apache.orc.OrcFile.createWriter(OrcFile.java:1078)
22924  	at org.apache.spark.sql.execution.datasources.orc.OrcOutputWriter.<init>(OrcOutputWriter.scala:49)
22925  	at org.apache.spark.sql.execution.datasources.orc.OrcFileFormat$$anon$1.newInstance(OrcFileFormat.scala:89)
22926  	at org.apache.spark.sql.execution.datasources.SingleDirectoryDataWriter.newOutputWriter(FileFormatDataWriter.scala:180)
22927  	at org.apache.spark.sql.execution.datasources.SingleDirectoryDataWriter.<init>(FileFormatDataWriter.scala:165)
22928  	at org.apache.spark.sql.execution.datasources.FileFormatWriter$.executeTask(FileFormatWriter.scala:391)
22929  	at org.apache.spark.sql.execution.datasources.WriteFilesExec.$anonfun$doExecuteWrite$1(WriteFiles.scala:107)
22930  	at org.apache.spark.rdd.RDD.$anonfun$mapPartitionsInternal$2(RDD.scala:901)
22931  	at org.apache.spark.rdd.RDD.$anonfun$mapPartitionsInternal$2$adapted(RDD.scala:901)
22932  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:52)
22933  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:374)
22934  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:338)
22935  	at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:93)
22936  	at org.apache.spark.TaskContext.runTaskWithListeners(TaskContext.scala:171)
22937  	at org.apache.spark.scheduler.Task.run(Task.scala:146)
22938  	at org.apache.spark.executor.Executor$TaskRunner.$anonfun$run$5(Executor.scala:644)
22939  	at org.apache.spark.util.SparkErrorUtils.tryWithSafeFinally(SparkErrorUtils.scala:64)
22940  	at org.apache.spark.util.SparkErrorUtils.tryWithSafeFinally$(SparkErrorUtils.scala:61)
22941  	at org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:99)
22942  	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:647)
22943  	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
22944  	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
22945  	at java.base/java.lang.Thread.run(Thread.java:840)
22946  Caused by: java.lang.ClassNotFoundException: org.bouncycastle.jce.provider.BouncyCastleProvider
22947  	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
22948  	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
22949  	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
22950  	... 32 more {code}