[
https://issues.apache.org/jira/browse/CALCITE-5596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17702503#comment-17702503
]
Lei Zhang edited comment on CALCITE-5596 at 3/20/23 9:20 AM:
-------------------------------------------------------------
After I bump jna form 5.5.0 to 5.7.0 and testcontainers from 1.15.1 to1.17.3
my Apple M1 passed
{code:java}
zhanglei@LeideMacBook-Pro calcite % ./gradlew build> Configure project :
Building Apache Calcite 1.35.0-SNAPSHOT> Task :release:distTar
Source distribution is created:
/Users/zhanglei/Work/github/calcite/release/build/distributions/apache-calcite-1.35.0-SNAPSHOT-src.tar.gz>
Task :rat
Could not load entry 06a75ec37dc8aeb63e12decbde1ff35d from remote build cache:
Bucket 'calcite-gradle-cache' not found> Task :redis:checkstyleTest
Could not load entry 3eae15bd50e73a1df37c72f3c2eb7e04 from remote build cache:
Bucket 'calcite-gradle-cache' not found> Task :redis:test
WARNING 0.0sec, 1 completed, 0 failed, 1 skipped,
org.apache.calcite.adapter.redis.RedisMiniServerGradle Test Executor 49
STANDARD_OUT
🐳 [testcontainers/ryuk:0.3.3] 2023-03-20 16:48:28,978
[ForkJoinPool-1-worker-1] INFO - Creating container for image:
testcontainers/ryuk:0.3.3
🐳 [testcontainers/ryuk:0.3.3] 2023-03-20 16:48:29,107
[ForkJoinPool-1-worker-1] INFO - Container testcontainers/ryuk:0.3.3 is
starting: e0c2e0f4123e5389a027313b5072e9ca83fb3792b3b85604699341f93f04425a
🐳 [testcontainers/ryuk:0.3.3] 2023-03-20 16:48:29,360
[ForkJoinPool-1-worker-1] INFO - Container testcontainers/ryuk:0.3.3 started
in PT0.414S
🐳 [redis:2.8.19] 2023-03-20 16:48:29,373 [ForkJoinPool-1-worker-1] INFO -
Creating container for image: redis:2.8.19
🐳 [redis:2.8.19] 2023-03-20 16:48:29,394 [ForkJoinPool-1-worker-1] INFO -
Container redis:2.8.19 is starting:
e351e2668c0b33da60542dd2dc056695c6229a8ff34db571d277f7a610b05520
org.testcontainers.containers.wait.internal.InternalCommandPortListeningCheck
2023-03-20 16:48:29,673 [testcontainers-wait-0] WARN - An exception while
executing the internal check: Container.ExecResult(exitCode=137, stdout=,
stderr=)
🐳 [redis:2.8.19] 2023-03-20 16:48:29,674 [ForkJoinPool-1-worker-1] INFO -
Container redis:2.8.19 started in PT0.301SRedisAdapterCaseBase >
testSqlWithJoin() STANDARD_ERROR
Mar 20, 2023 4:48:29 PM org.apache.calcite.adapter.redis.RedisCaseBase
createRedisServer
INFO: Not using Docker, starting RedisMiniServerRedisAdapterCaseBase >
testRedisBySql() STANDARD_ERROR
Mar 20, 2023 4:48:31 PM org.apache.calcite.adapter.redis.RedisCaseBase
createRedisServer
INFO: Not using Docker, starting RedisMiniServer
8.5sec, 2 completed, 0 failed, 0 skipped,
org.apache.calcite.adapter.redis.RedisAdapterCaseBase
WARNING 8.9sec, 3 completed, 0 failed, 1 skipped, Gradle Test Run
:redis:test> Task :geode:test
40.1sec, org.apache.calcite.adapter.geode.rel.GeodeAllDataTypesTest >
testSqlWhereWithMultipleOrForAllFields()
45.1sec, org.apache.calcite.adapter.geode.rel.GeodeAllDataTypesTest >
testSqlBooleanColumnNotFilter()
50.1sec, org.apache.calcite.adapter.geode.rel.GeodeAllDataTypesTest >
testSqlMultipleTimestampWhereFilter()
55.2sec, org.apache.calcite.adapter.geode.rel.GeodeAllDataTypesTest >
testSqlWhereWithMultipleOrForLiteralFields()
60.2sec, org.apache.calcite.adapter.geode.rel.GeodeZipsTest >
testMaxRaw()
95.2sec, org.apache.calcite.adapter.geode.rel.GeodeAllDataTypesTest >
testSqlSingleBooleanWhereFilter()
60.1sec, org.apache.calcite.adapter.geode.rel.GeodeZipsTest >
testWhereWithOrForNestedNumericField()
60.1sec, org.apache.calcite.adapter.geode.rel.GeodeZipsTest >
testWhereWithOrForNumericField()
60.1sec, org.apache.calcite.adapter.geode.rel.GeodeAllDataTypesTest >
testSqlBooleanColumnFilter()
60.1sec, org.apache.calcite.adapter.geode.rel.GeodeZipsTest >
testGroupByRaw()
60.1sec, org.apache.calcite.adapter.geode.rel.GeodeZipsTest >
testWhereWithOrForStringField()
180.3sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testAddMissingGroupByColumnToProjectedFields()
110.2sec, org.apache.calcite.adapter.geode.rel.GeodeZipsTest >
testWhereWithOrForLargeValueList()
120.2sec, org.apache.calcite.adapter.geode.rel.GeodeAllDataTypesTest >
testSqlMultipleBooleanWhereFilter()
180.3sec, org.apache.calcite.adapter.geode.rel.GeodeAllDataTypesTest >
testSqlSingleDateWhereFilter()
60.1sec, org.apache.calcite.adapter.geode.rel.GeodeZipsTest >
testGroupByView()
60.1sec, org.apache.calcite.adapter.geode.rel.GeodeAllDataTypesTest >
testSqlMultipleDateWhereFilter()
180.2sec, org.apache.calcite.adapter.geode.rel.GeodeAllDataTypesTest >
testSqlSingleTimeWhereFilter()
60.1sec, org.apache.calcite.adapter.geode.rel.GeodeAllDataTypesTest >
testSqlMultipleTimeWhereFilter()
180.3sec, org.apache.calcite.adapter.geode.rel.GeodeAllDataTypesTest >
testSqlSingleTimestampWhereFilter()
402.0sec, 12 completed, 0 failed, 0 skipped,
org.apache.calcite.adapter.geode.rel.GeodeAllDataTypesTest
60.1sec, org.apache.calcite.adapter.geode.rel.GeodeZipsTest >
testGroupByRawWithAliases()
60.0sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testInSetFilterWithNestedStringField()
120.1sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testSqlSimple()
60.0sec, org.apache.calcite.adapter.geode.rel.GeodeZipsTest >
testSqlSingleStringWhereFilter()
180.2sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testCountStar()
80.1sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testSortWithProjectionAndLimit()
120.1sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testFilterWithNestedField()
120.1sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testWhereWithOr()
60.0sec, org.apache.calcite.adapter.geode.rel.GeodeZipsTest >
testSelectLocItem()
60.1sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testSqlLimit2()
35.0sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testSqlDistinctSort()
95.1sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testMissingProjectRelationOnGroupByColumnMatchingProjectedFields()
10.0sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testSqlDistinctSort2()
165.2sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testSortWithProjection()
175.2sec, org.apache.calcite.adapter.geode.rel.GeodeZipsTest >
testItemPredicate()
WARNING 612.2sec, 14 completed, 0 failed, 3 skipped,
org.apache.calcite.adapter.geode.rel.GeodeZipsTest
70.1sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testLimit()
105.1sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testCount()
40.0sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testSqlDistinctSort3()
80.2sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testWhereWithOrAnd()
100.2sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testGroupBy()
110.2sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testMaxMinSumAvg()
115.2sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testMaxMinSumAvgInGroupBy()
120.2sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testSelectWithNestedPdxFieldAccess()
140.2sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testWhereWithAndOr()
240.3sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testProjectionsAndWhereGreatThan()
70.1sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testSqlDisjunction()
20.0sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testSqlBookMasterCount()
70.1sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testSqlSingleNumberWhereFilter()
90.1sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testMissingProjectRelationOnGroupByColumnMatchingProjectedFields2()
100.1sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testCountInGroupBy()
110.1sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testSelectWithNullFieldValue()
70.1sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testSqlBookMasterWhere()
70.1sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testSqlConjunction()
30.0sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testSelect()
70.1sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testSelectWithNestedPdx()
270.4sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testWhereEqual()
85.1sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testSelectWithNestedPdx2()
85.1sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testWhereWithAnd()
140.1sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest >
testSortBy2Columns()
922.7sec, 36 completed, 0 failed, 0 skipped,
org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest
WARNING 928.5sec, 62 completed, 0 failed, 3 skipped, Gradle Test Run
:geode:testDeprecated Gradle features were used in this build, making it
incompatible with Gradle 8.0.You can use '--warning-mode all' to show the
individual deprecation warnings and determine if they come from your own
scripts or plugins.See
https://docs.gradle.org/7.6.1/userguide/command_line_interface.html#sec:command_line_warningsBUILD
SUCCESSFUL in 15m 30s
384 actionable tasks: 14 executed, 370 up-to-date {code}
was (Author: zhangg):
After I upgraded the JNA version to 5.7.0, my Apple M1 passed
> Gradle test executor failed on Apple Silicon
> --------------------------------------------
>
> Key: CALCITE-5596
> URL: https://issues.apache.org/jira/browse/CALCITE-5596
> Project: Calcite
> Issue Type: Improvement
> Affects Versions: 1.34.0
> Reporter: Lei Zhang
> Assignee: Lei Zhang
> Priority: Major
>
> ./gradlew build
>
> {code:java}
> > Task :elasticsearch:testGradle Test Executor 8 STANDARD_OUT
> 2023-03-20 09:12:32,480 [ForkJoinPool-1-worker-3] WARN - unable to load
> JNA native support library, native methods will be disabled.
> java.lang.UnsatisfiedLinkError:
> /Users/zhanglei/Library/Caches/JNA/temp/jna186090715106003967.tmp:
> dlopen(/Users/zhanglei/Library/Caches/JNA/temp/jna186090715106003967.tmp,
> 0x0001): tried:
> '/Users/zhanglei/Library/Caches/JNA/temp/jna186090715106003967.tmp' (fat
> file, but missing compatible architecture (have (i386,x86_64), need (arm64e)))
> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> ~[?:1.8.0_332]
> at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1950)
> ~[?:1.8.0_332]
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1832)
> ~[?:1.8.0_332]
> at java.lang.Runtime.load0(Runtime.java:811) ~[?:1.8.0_332]
> at java.lang.System.load(System.java:1088) ~[?:1.8.0_332]
> at
> com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:1018)
> ~[jna-5.5.0.jar:5.5.0 (b0)]
> at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:988)
> ~[jna-5.5.0.jar:5.5.0 (b0)]
> at com.sun.jna.Native.<clinit>(Native.java:195) ~[jna-5.5.0.jar:5.5.0
> (b0)]
> at java.lang.Class.forName0(Native Method) ~[?:1.8.0_332]
> at java.lang.Class.forName(Class.java:264) ~[?:1.8.0_332]
> at org.elasticsearch.bootstrap.Natives.<clinit>(Natives.java:45)
> ~[elasticsearch-7.10.2.jar:7.10.2]
> at
> org.elasticsearch.bootstrap.BootstrapInfo.isMemoryLocked(BootstrapInfo.java:50)
> ~[elasticsearch-7.10.2.jar:7.10.2]
> at
> org.elasticsearch.monitor.process.ProcessProbe.processInfo(ProcessProbe.java:130)
> ~[elasticsearch-7.10.2.jar:7.10.2]
> at
> org.elasticsearch.monitor.process.ProcessService.<init>(ProcessService.java:47)
> ~[elasticsearch-7.10.2.jar:7.10.2]
> at
> org.elasticsearch.monitor.MonitorService.<init>(MonitorService.java:45)
> ~[elasticsearch-7.10.2.jar:7.10.2]
> at org.elasticsearch.node.Node.<init>(Node.java:433)
> ~[elasticsearch-7.10.2.jar:7.10.2]
> at
> org.apache.calcite.adapter.elasticsearch.EmbeddedElasticsearchNode$LocalNode.<init>(EmbeddedElasticsearchNode.java:169)
> ~[test/:?]
> at
> org.apache.calcite.adapter.elasticsearch.EmbeddedElasticsearchNode$LocalNode.<init>(EmbeddedElasticsearchNode.java:166)
> ~[test/:?]
> at
> org.apache.calcite.adapter.elasticsearch.EmbeddedElasticsearchNode.create(EmbeddedElasticsearchNode.java:69)
> ~[test/:?]
> at
> org.apache.calcite.adapter.elasticsearch.EmbeddedElasticsearchNode.create(EmbeddedElasticsearchNode.java:102)
> ~[test/:?]
> at
> org.apache.calcite.adapter.elasticsearch.EmbeddedElasticsearchPolicy$Singleton.<clinit>(EmbeddedElasticsearchPolicy.java:74)
> ~[test/:?]
> at
> org.apache.calcite.adapter.elasticsearch.EmbeddedElasticsearchPolicy.create(EmbeddedElasticsearchPolicy.java:92)
> ~[test/:?]
> at
> org.apache.calcite.adapter.elasticsearch.BooleanLogicTest.<clinit>(BooleanLogicTest.java:46)
> ~[test/:?]
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[?:1.8.0_332]
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:1.8.0_332]
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:1.8.0_332]
> at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_332]
> at
> org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:727)
> ~[junit-platform-commons-1.9.1.jar:1.9.1]
> at
> org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
> ~[junit-jupiter-engine-5.9.1.jar:5.9.1]
> at
> org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
> ~[junit-jupiter-engine-5.9.1.jar:5.9.1]
> at
> org.junit.jupiter.engine.extension.SameThreadTimeoutInvocation.proceed(SameThreadTimeoutInvocation.java:45)
> ~[junit-jupiter-engine-5.9.1.jar:5.9.1]
> at
> org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156)
> ~[junit-jupiter-engine-5.9.1.jar:5.9.1]
> at
> org.junit.jupiter.engine.extension.TimeoutExtension.interceptLifecycleMethod(TimeoutExtension.java:128)
> ~[junit-jupiter-engine-5.9.1.jar:5.9.1]
> at
> org.junit.jupiter.engine.extension.TimeoutExtension.interceptBeforeAllMethod(TimeoutExtension.java:70)
> ~[junit-jupiter-engine-5.9.1.jar:5.9.1]
> at
> org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103)
> ~[junit-jupiter-engine-5.9.1.jar:5.9.1]
> at
> org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93)
> ~[junit-jupiter-engine-5.9.1.jar:5.9.1]
> at
> org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
> ~[junit-jupiter-engine-5.9.1.jar:5.9.1]
> at
> org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
> ~[junit-jupiter-engine-5.9.1.jar:5.9.1]
> at
> org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
> ~[junit-jupiter-engine-5.9.1.jar:5.9.1]
> at
> org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
> ~[junit-jupiter-engine-5.9.1.jar:5.9.1]
> at
> org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92)
> ~[junit-jupiter-engine-5.9.1.jar:5.9.1]
> at
> org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86)
> ~[junit-jupiter-engine-5.9.1.jar:5.9.1]
> at
> org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeBeforeAllMethods$13(ClassBasedTestDescriptor.java:411)
> ~[junit-jupiter-engine-5.9.1.jar:5.9.1]
> at
> org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
> ~[junit-platform-engine-1.9.1.jar:1.9.1]
> at
> org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.invokeBeforeAllMethods(ClassBasedTestDescriptor.java:409)
> ~[junit-jupiter-engine-5.9.1.jar:5.9.1]
> at
> org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.before(ClassBasedTestDescriptor.java:215)
> ~[junit-jupiter-engine-5.9.1.jar:5.9.1]
> at
> org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.before(ClassBasedTestDescriptor.java:84)
> ~[junit-jupiter-engine-5.9.1.jar:5.9.1]
> at
> org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:148)
> ~[junit-platform-engine-1.9.1.jar:1.9.1]
> at
> org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
> ~[junit-platform-engine-1.9.1.jar:1.9.1]
> at
> org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
> ~[junit-platform-engine-1.9.1.jar:1.9.1]
> at
> org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
> ~[junit-platform-engine-1.9.1.jar:1.9.1]
> at
> org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
> ~[junit-platform-engine-1.9.1.jar:1.9.1]
> at
> org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
> [junit-platform-engine-1.9.1.jar:1.9.1]
> at
> org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
> [junit-platform-engine-1.9.1.jar:1.9.1]
> at
> org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
> [junit-platform-engine-1.9.1.jar:1.9.1]
> at
> org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService$ExclusiveTask.compute(ForkJoinPoolHierarchicalTestExecutorService.java:185)
> [junit-platform-engine-1.9.1.jar:1.9.1]
> at
> java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:189)
> [?:1.8.0_332]
> at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
> [?:1.8.0_332]
> at
> java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
> [?:1.8.0_332]
> at
> java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
> [?:1.8.0_332]
> at
> java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175)
> [?:1.8.0_332]
> 2023-03-20 09:12:33,534 [ForkJoinPool-1-worker-3] WARN -
> gateway.auto_import_dangling_indices is disabled, dangling indices will not
> be automatically detected or imported and must be managed manually
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)