StarHuzy commented on issue #28704:
URL: 
https://github.com/apache/shardingsphere/issues/28704#issuecomment-1756650854

   > * 迟回复。直到明天我才有时间确认真正的问题。这似乎与 ShardingSphere JDBC 5.4.1 里程碑上的一些问题有关。
   
   
   
   > > > * 迟回复。直到明天我才有时间确认真正的问题。这似乎与 ShardingSphere JDBC 5.4.1 里程碑上的一些问题有关。
   > > 
   > > 
   > > ShardingSphere-jdbc 5.3.2 中 SpringBoot 好像没有 DataSource 管理。 
ShardingSphere-jdbc 5.3.2 中将 Driver 的配置读取调整为 SPI 接口时,如何获取 DataSource 
对象?但是我们可以通过以下方式刷新表规则actualDataNodes吗?获取数据源?
   > 
   > * 需要考虑的是,ShardingSphere JDBC 
5.3.2对SPI扩展的上下游ContextManager进行了重构,对第三方元数据中心进行了重构。
   > * 我在[【文章投稿】欢迎在这里留下文章链接 
#12258(评论)](https://github.com/apache/shardingsphere/discussions/12258#discussioncomment-3917927),提到了如何在ShardingSphere
 JDBC 5.3.0上获取真正的ShardingSphereDataSource使用ContextManager,需要主动定义一个Spring 
Bean。我试图帮助下游从初学者的角度理解 ContextManager 如何满足像 DistSQL 这样的动态更新需求。
   > * 本文还提到了通过 JDBC Driver 配置时如何通过 Connection 获取 
ContextManager。但没过多久,我发现这个例子在修复[ 
linghengqian/shardingsphere-contextmanager-explore#3](https://github.com/linghengqian/shardingsphere-contextmanager-explore/issues/3)[示例中更新元数据后
 JDBC Connection 
集体失败的问题](https://github.com/linghengqian/shardingsphere-contextmanager-explore/issues/3)上有一个
 bug 。我还没有弄清楚如何修复它——尽管我是 ShardingSphere Committer,但我也有知识盲点,因为 master 
分支的单元测试变化非常频繁。[`shardingsphere-v530-jdk8-modern`](https://github.com/linghengqian/shardingsphere-contextmanager-explore/issues/3)
   > * 我计划在不久的将来重构这篇文章,并包含ShardingSphere JDBC 5.3.1、5.3.2、5.4.0和5.4.1的示例。此 TODO 
记录在https://www.yuque.com/linghengqian/meve2v/ykridze9nguvect5。考虑到我是一名即将毕业的大学生,找到时间对我来说很困难。
   > * 作为警告,我绝对不认为您应该将任何 Spring Bean 注入到 ShardingSphere SPI 的算法类实现中,这与 DistSQL 
的定义相冲突。因为算法类实际上必须是最终类,所以 DistSQL 可以删除并重新创建算法类。
   > * [作为进一步的扩展,我在MakeactualDataNodes 
公开](https://github.com/apache/shardingsphere/issues/22899)SPI 中公开了行值表达式 SPI ,该 
SPI 可以使用自定义规则定义表达式并添加 GraalVM Truffle 实现[ 
#22899](https://github.com/apache/shardingsphere/issues/22899)。这允许以更灵活的方式定义 
ActualDataNodes。该功能位于ShardingSphere 
5.4.1预发布分支上。[](https://github.com/apache/shardingsphere/issues/22899)
   > * 更新:我提到的这篇文章涉及到一个非常不幸的问题,我没有精力翻译成英文,这让我假设你懂中文。
   
   您好,今天尝试了很多版本,最终在ShardingSphere JDBC 5.1.1版本中实现了这个功能,actual-data-nodes 
只需要配置动态加载的逻辑表名即可,无论是对单表还是 JOIN 
QUERY多表执行SQL,但是似乎又出现了一个新问题关于@transactional()注解管理事务,当我的msyql连接驱动版本是mysql-connector-java-8.0.33时,事务失效,我降级8.0.20版本后,事务成功,这是版本新特性的原因吗?5.1.1这个版本我如果想使用分布式事务,上面的问题会导致这个问题吗
   


-- 
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-unsubscr...@shardingsphere.apache.org

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

Reply via email to