You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "linghengqian (via GitHub)" <gi...@apache.org> on 2024/10/10 14:06:31 UTC

[I] Completely prevent GraalVM Tracing Agent from collecting unreasonable GRM for unit tests related to `org.apache.shardingsphere.test.natived.proxy.features.**` [shardingsphere]

linghengqian opened a new issue, #33206:
URL: https://github.com/apache/shardingsphere/issues/33206

   ## 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?
   
   - 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.
   
   ```json
        {
       "condition":{"typeReachable":"org.apache.shardingsphere.proxy.backend.config.ProxyConfigurationLoader"},
       "pattern":"\\QcustomPath/shardingsphere/test/native/src/test/resources/test-native/yaml/proxy/databases/postgresql//global.yaml\\E"
     }, {
       "condition":{"typeReachable":"org.apache.shardingsphere.proxy.backend.config.ProxyConfigurationLoader"},
       "pattern":"\\QcustomPath/shardingsphere/test/native/src/test/resources/test-native/yaml/proxy/databases/postgresql/\\E"
     }, {
       "condition":{"typeReachable":"org.apache.shardingsphere.proxy.backend.config.ProxyConfigurationLoader"},
       "pattern":"\\QcustomPath/shardingsphere/test/native/src/test/resources/test-native/yaml/proxy/features/sharding//global.yaml\\E"
     }, {
       "condition":{"typeReachable":"org.apache.shardingsphere.proxy.backend.config.ProxyConfigurationLoader"},
       "pattern":"\\QcustomPath/shardingsphere/test/native/src/test/resources/test-native/yaml/proxy/features/sharding/\\E"
     }
   ```
   
   - 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`.
   
   
   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Completely prevent GraalVM Tracing Agent from collecting unreasonable GRM for unit tests related to `org.apache.shardingsphere.test.natived.proxy.features.**` [shardingsphere]

Posted by "linghengqian (via GitHub)" <gi...@apache.org>.
linghengqian commented on issue #33206:
URL: https://github.com/apache/shardingsphere/issues/33206#issuecomment-3248011007

   Consider the changes in https://github.com/oracle/graal/discussions/12090. However, these changes are not available in `reachability-metadata.json`.


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Completely prevent GraalVM Tracing Agent from collecting unreasonable GRM for unit tests related to `org.apache.shardingsphere.test.natived.proxy.features.**` [shardingsphere]

Posted by "linghengqian (via GitHub)" <gi...@apache.org>.
linghengqian commented on issue #33206:
URL: https://github.com/apache/shardingsphere/issues/33206#issuecomment-2405195956

   - I am working on the current issue.


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Completely prevent GraalVM Tracing Agent from collecting unreasonable GRM for unit tests related to `org.apache.shardingsphere.test.natived.proxy.features.**` [shardingsphere]

Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu closed issue #33206: Completely prevent GraalVM Tracing Agent from collecting unreasonable GRM for unit tests related to `org.apache.shardingsphere.test.natived.proxy.features.**`
URL: https://github.com/apache/shardingsphere/issues/33206


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Completely prevent GraalVM Tracing Agent from collecting unreasonable GRM for unit tests related to `org.apache.shardingsphere.test.natived.proxy.features.**` [shardingsphere]

Posted by "linghengqian (via GitHub)" <gi...@apache.org>.
linghengqian commented on issue #33206:
URL: https://github.com/apache/shardingsphere/issues/33206#issuecomment-4478533589

   See https://github.com/apache/shardingsphere/pull/38682 .
   
   > Refactor `org.apache.shardingsphere.test.natived.commons.util.ProxyTestingServer` to use fix from https://github.com/apache/shardingsphere/issues/38664 . Also fixes https://github.com/apache/shardingsphere/issues/33206 .


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org