linghengqian opened a new pull request, #29124:
URL: https://github.com/apache/shardingsphere/pull/29124

   For #29052.
   
   Changes proposed in this pull request:
     - Provide `native-image.properties` containing 
`--report-unsupported-elements-at-runtime` of buildArgs. Since the behavior of 
classes like `groovy.lang.Closure` cannot be described by GraalVM Reachability 
Metadata V1.0.0, I expect to build the buildArgs directly into 
`org.apache.shardingsphere:shardingsphere-infra-reachability-metadata` until I 
find a better solution. . Reference 
https://www.graalvm.org/docs/reference-manual/native-image/assets/reflect-config-schema-v1.0.0.json
 . 
     - This PR fixes #29107 incorrect handling of Maven Profile for 
`generateMetadata`.
     - This PR terminates `InlineExpressionParserFactory`'s parsing of Groovy 
syntax by default under GraalVM Native Image.
     - Due to improvements in #28780 , 
`shardingsphere-cluster-mode-repository-etcd` no longer prevents compilation of 
ShardingSphere Proxy Native.
     - Incorporate `META-INF/dgminfo` into Groovy’s GraalVM Reachability 
Metadata to avoid a Log. Refer to 
https://github.com/apache/shardingsphere/actions/runs/6947807930/job/18902440695
 .
   ```shell
   java.io.IOException: Stream closed
        at 
[email protected]/java.io.BufferedInputStream.getInIfOpen(BufferedInputStream.java:157)
        at 
[email protected]/java.io.BufferedInputStream.fill(BufferedInputStream.java:244)
        at 
[email protected]/java.io.BufferedInputStream.read(BufferedInputStream.java:263)
        at 
[email protected]/java.io.DataInputStream.readUnsignedShort(DataInputStream.java:334)
        at 
[email protected]/java.io.DataInputStream.readUTF(DataInputStream.java:583)
        at 
[email protected]/java.io.DataInputStream.readUTF(DataInputStream.java:558)
        at 
org.codehaus.groovy.reflection.GeneratedMetaMethod$DgmMethodRecord.loadDgmInfo(GeneratedMetaMethod.java:200)
   ```
   
   ---
   
   Before committing this PR, I'm sure that I have checked the following 
options:
   - [x] My code follows the [code of 
conduct](https://shardingsphere.apache.org/community/en/involved/conduct/code/) 
of this project.
   - [x] I have self-reviewed the commit code.
   - [x] I have (or in comment I request) added corresponding labels for the 
pull request.
   - [x] I have passed maven check locally : `./mvnw clean install -B -T1C 
-Dmaven.javadoc.skip -Dmaven.jacoco.skip -e`.
   - [x] I have made corresponding changes to the documentation.
   - [x] I have added corresponding unit tests for my changes.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to