Lei Zhang created CALCITE-5596:
----------------------------------

             Summary: 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


./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)

Reply via email to