linghengqian commented on issue #37103: URL: https://github.com/apache/shardingsphere/issues/37103#issuecomment-3533697730
- My view is that you should provide a Git repository that includes unit tests. From my perspective, the way you configured `validationQuery` is fine. - Since the ShardingSphere master branch doesn't test Alibaba Druid at all, I documented similar testing scenarios in a Chinese article on an external website, namely https://www.yuque.com/linghengqian/meve2v/zoy35sivtf6nzp90 . Both the `filters` and `useGlobalDataSourceStat` attributes are correctly recognized by ShardingSphere. ```yaml mode: type: Standalone repository: type: JDBC dataSources: ds_0: dataSourceClassName: com.alibaba.druid.pool.DruidDataSource driverClassName: org.h2.Driver url: jdbc:h2:mem:demo_ds_0;MODE=MYSQL;IGNORECASE=TRUE;CASE_INSENSITIVE_IDENTIFIERS=TRUE username: sa password: useGlobalDataSourceStat: true filters: wall,mergeStat ds_1: dataSourceClassName: com.alibaba.druid.pool.DruidDataSource driverClassName: org.h2.Driver url: jdbc:h2:mem:demo_ds_1;MODE=MYSQL;IGNORECASE=TRUE;CASE_INSENSITIVE_IDENTIFIERS=TRUE username: sa password: useGlobalDataSourceStat: true filters: wall,io.github.linghengqian.filter.testd.CustomStatFilter ds_2: dataSourceClassName: com.alibaba.druid.pool.DruidDataSource driverClassName: org.h2.Driver url: jdbc:h2:mem:demo_ds_2;MODE=MYSQL;IGNORECASE=TRUE;CASE_INSENSITIVE_IDENTIFIERS=TRUE username: sa password: useGlobalDataSourceStat: true filters: >- wall, io.github.linghengqian.filter.testd.CustomStatFilter ``` - Incidentally, https://github.com/alibaba/druid/pull/6128 has never been merged. -- 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]
