You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "BourneD (via GitHub)" <gi...@apache.org> on 2025/04/15 03:16:23 UTC
[I] does shardingsphere-jdbc still support TransactionHook? [shardingsphere]
BourneD opened a new issue, #35198:
URL: https://github.com/apache/shardingsphere/issues/35198
Does shardingsphere-jdbc still support TransactionHook? I found no usage of TransactionHook in shardingsphere-jdbc module. I tested customized TransactionHook with transaction type LOCAL, and found that the customized TransactionHook was not used during transaction execution.
--
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] does shardingsphere-jdbc still support TransactionHook? [shardingsphere]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #35198:
URL: https://github.com/apache/shardingsphere/issues/35198#issuecomment-2829040871
There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.
--
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] does shardingsphere-jdbc still support TransactionHook? [shardingsphere]
Posted by "BourneD (via GitHub)" <gi...@apache.org>.
BourneD commented on issue #35198:
URL: https://github.com/apache/shardingsphere/issues/35198#issuecomment-2853529600
But it does not work for the latest version 5.5.2. As DriverState does not support spi registry, and all the implementations of DriverState are initialized in DriverStateContext and there is no way to replace those implementations.
--
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] does shardingsphere-jdbc still support TransactionHook? [shardingsphere]
Posted by "BourneD (via GitHub)" <gi...@apache.org>.
BourneD commented on issue #35198:
URL: https://github.com/apache/shardingsphere/issues/35198#issuecomment-2813321930
I found a tricky way to solve it. I implement two SPI interfaces CustomDriverState and CustomTransactionHook, and I wrap ShardingSphereConnection and CustomTransactionHook into CustomShardingSphereConnection. In CustomShardingSphereConnection, I can leverage CustomTransactionHook during transaction life cycles.
--
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] does shardingsphere-jdbc still support TransactionHook? [shardingsphere]
Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu closed issue #35198: does shardingsphere-jdbc still support TransactionHook?
URL: https://github.com/apache/shardingsphere/issues/35198
--
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