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

   For #29000.
   
   Changes proposed in this pull request:
     - Open the `resource:/` related FileSystem for JDBCRepositorySQLLoader in 
the GraalVM Native Image environment.
     - Also for #21347.
     - Under the GraalVM Native Image corresponding to GraalVM CE 21.0.1, 
although there is `NativeImageResourceFileSystemProvider` , the corresponding 
`NativeImageResourceFileSystem`  does not autoload. This is mainly to align the 
behavior of `ZipFileSystemProvider`, so we need to manually open and close the 
FileSystem corresponding to the `resource:/` scheme. For more background 
reference https://github.com/oracle/graal/issues/7682 .
     - we use the System Property of `org.graalvm.nativeimage.imagecode` to 
identify whether this class is in the GraalVM Native Image environment. The 
background of this property comes from Annotation Interface 
DisabledInNativeImage on Junit.
   
   ---
   
   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`.
   - [ ] I have made corresponding changes to the documentation.
   - [ ] 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