[英]REQUIRES_NEW transactions in not supported by Spring data gemfire
I am using v1.7.5 of Spring Data Gemfire with Gemfire 8.2.0. 我正在将Spring Data Gemfire v1.7.5与Gemfire 8.2.0一起使用。 While using REQUIRES_NEW transactional propogation, it fails with below error while trying to suspend the existing transaction.
使用REQUIRES_NEW事务传播时,尝试挂起现有事务时失败并显示以下错误。 It looks like underlying Gemfire transction manager (CacheTransactionManager) supports suspend and resume but the spring data gemfire doesn't.
底层Gemfire转换管理器(CacheTransactionManager)似乎支持挂起和恢复,但spring数据gemfire不支持。 Is my understanding right?
我的理解正确吗? if yes, is there a work around or support that will be available in near future?
如果是,是否会在不久的将来提供解决方法或支持?
Caused by: org.springframework.transaction.TransactionSuspensionNotSupportedException: Transaction manager [org.springframework.data.gemfire.GemfireTransactionManager] does not support transaction suspension at org.springframework.transaction.support.AbstractPlatformTransactionManager.doSuspend(AbstractPlatformTransactionManager.java:1129) at org.springframework.transaction.support.AbstractPlatformTransactionManager.suspend(AbstractPlatformTransactionManager.java:579) at org.springframework.transaction.support.AbstractPlatformTransactionManager.handleExistingTransaction(AbstractPlatformTransactionManager.java:424) at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:349) at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:427) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:276) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
Good catch! 接得好!
I have filed JIRA ticket SGF-598 - 我已提交JIRA门票SGF-598-
"Add support for suspend and resume in GemfireTransactionManager" to enhance the SDG GemfireTransactionManager
with suspend and resume capabilities on local cache transactions. “添加对GemfireTransactionManager中的暂停和恢复的支持”以增强SDG
GemfireTransactionManager
本地缓存事务的暂停和恢复功能。
I have set the "Fix Versions" for this ticket accordingly. 我已经为此票设置了“修复版本”。
NOTE: SDG 1.7.x
is no longer supported. 注意:不再支持
1.7.x
See the SDG project page for the most current, up-to-date versions. 有关最新的最新版本,请参见SDG项目页面 。
Thanks, John 谢谢,约翰
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.