简体   繁体   English

Spring数据gemfire不支持REQUIRES_NEW个事务

[英]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.

相关问题 EJB Transactions属性:NOT_SUPPORTED和REQUIRES_NEW - EJB Transactions attribute: NOT_SUPPORTED and REQUIRES_NEW Spring 事务:从带有 requires 的方法调用的带有 requires_new 的方法 - Spring transactions: Method with requires_new called from a method with requires Spring事务中REQUIRES_NEW和NESTED传播行为的差异 - Differences in behaviour of REQUIRES_NEW and NESTED propagation in Spring transactions Spring 事务中 requires_new 和嵌套传播的区别 - Differences between requires_new and nested propagation in Spring transactions Spring 事务从 NOT_SUPPORTED 到 REQUIRES_NEW 的传播 - Spring Transaction Propagation from NOT_SUPPORTED to REQUIRES_NEW 循环传播新事务(使用REQUIRES_NEW)不能按预期方式进行 - Propagation of new transactions (using REQUIRES_NEW) in a loop is not working as expected REQUIRES_NEW在Spring + Hibernate中不创建新交易 - REQUIRES_NEW not creating a new transaction in spring+hibernate Spring真的用REQUIRES_NEW开始新的交易吗? - Does Spring actually start a new transaction with REQUIRES_NEW? Spring事务REQUIRED与REQUIRES_NEW:回滚事务 - Spring transaction REQUIRED vs REQUIRES_NEW : Rollback Transaction Spring交易REQUIRES_NEW是否会传播到方法中的方法? - Will Spring transaction REQUIRES_NEW be propagated to the methods within the method?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM