Open linghengqian opened 1 year ago
@linghengqian Any updates on this issue? :)
@linghengqian Any updates on this issue? :)
I confirmed in https://github.com/apache/shardingsphere-elasticjob/pull/2428 that https://github.com/apache/shardingsphere/blob/cb729ed63f234118202d41210f3ffdba035286b1/infra/reachability-metadata/src/main/resources/META-INF/native-image/org.apache.zookeeper/zookeeper/3.9.0/reflect-config.json is not all the GraalVM Reachability Metadata required by Zookeeper. Once trying to connect to Zookeeper Server with DIGEST-MD5 as SASL mechanism, JAAS related GraalVM Reachability Metadata is missing for Zookeeper Client.
To be honest, this is my first time to touch such an old thing as JAAS under GraalVM Native Image, and the SASL mechanism in JAAS is even more niche. Perhaps it is necessary to initiate relevant investigation in the ASF JIRA of apache/zookeeper and apache/curator . After all, the Kafka Client of apache/kafka can connect to the Kafka Server with SASL mechanism enabled under GraalVM Native Image. I will of course assume that the Kafka Native Server in the form of the GraalVM Native Image that has been announced to be generally available solves the problem with the SASL mechanism.
But then again, the PMC of apache/curator is migrating the issue tracker, so it may take some time to wait. See https://x.com/tison1096/status/1821834353917206865 and https://lists.apache.org/thread/jky33br972m1nwbnp9cjfzl9vlrmrt85 .
I think I will resolve this issue before GraalVM CE For JDK29 is released.
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
~Yes, this is a pre-issue to https://github.com/oracle/graalvm-reachability-metadata/issues/163 .~
Since Zookeeper Server 3.8.1 includes critical https://issues.apache.org/jira/browse/ZOOKEEPER-4460 to fix GraalVM nativeTest. Refer to https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12351398&styleName=Html&projectId=12310801 .
Describe the solution you'd like A clear and concise description of what you want to happen.
org.apache.zookeeper:zookeeper:3.8.1
.Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Additional context Add any other context or screenshots about the feature request here.
Metadata generated at https://github.com/linghengqian/graalvm-trace-metadata-smoketest/issues/1 .
Linkes to https://github.com/apache/shardingsphere/issues/21347 and https://github.com/apache/shardingsphere/issues/29052 .