Distributed SQL transaction & query engine for data sharding, scaling, encryption, and more - on any database.
Apache License 2.0
19.89k
stars
6.73k
forks
source link
Completely prevent GraalVM Tracing Agent from collecting unreasonable GRM for unit tests related to `org.apache.shardingsphere.test.natived.proxy.features.**` #33206
For English only, other languages will not be accepted.
Please pay attention on issues you submitted, because we maybe need more details.
If no response anymore and we cannot make decision by current information, we will close it.
Please answer these questions before submitting your issue. Thanks!
Is your feature request related to a problem?
See #33179 .
Describe the feature you would like.
GraalVM Tracing Agent is collecting unreasonable GRMs for unit tests related to org.apache.shardingsphere.test.natived.proxy.features.**.
Taking org.apache.shardingsphere.test.natived.proxy.features.ShardingTest as an example, using ./mvnw -PgenerateMetadata -DskipNativeTests -T 1C -e clean test native:metadata-copy will write some error GraalVM Reachability Metadata similar to the following to infra/reachability-metadata/src/main/resources/META-INF/native-image/org.apache.shardingsphere/generated-reachability-metadata/resource-config.json.
This is apparently because the unit test is generating an absolute path for the server side of ShardingSphere Proxy.
But in fact, there is no way to control the JSON content generated by GraalVM Tracing Agent for resource-config.json. The current solution is to require contributors to manually clean up this JSON in the documentation. This is independent of whether Safe Composition of Metadata is enabled.
The current issue aims to track the situation reported in https://github.com/oracle/graal/issues/8417 and find a way to control the generated content of resource-config.json.
Feature Request
For English only, other languages will not be accepted.
Please pay attention on issues you submitted, because we maybe need more details. If no response anymore and we cannot make decision by current information, we will close it.
Please answer these questions before submitting your issue. Thanks!
Is your feature request related to a problem?
Describe the feature you would like.
org.apache.shardingsphere.test.natived.proxy.features.**
.org.apache.shardingsphere.test.natived.proxy.features.ShardingTest
as an example, using./mvnw -PgenerateMetadata -DskipNativeTests -T 1C -e clean test native:metadata-copy
will write some error GraalVM Reachability Metadata similar to the following toinfra/reachability-metadata/src/main/resources/META-INF/native-image/org.apache.shardingsphere/generated-reachability-metadata/resource-config.json
.resource-config.json
. The current solution is to require contributors to manually clean up this JSON in the documentation. This is independent of whether Safe Composition of Metadata is enabled.resource-config.json
.