简体   繁体   中英

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. While using REQUIRES_NEW transactional propogation, it fails with below error while trying to suspend the existing transaction. It looks like underlying Gemfire transction manager (CacheTransactionManager) supports suspend and resume but the spring data gemfire doesn't. 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 -
"Add support for suspend and resume in GemfireTransactionManager" to enhance the SDG GemfireTransactionManager with suspend and resume capabilities on local cache transactions.

I have set the "Fix Versions" for this ticket accordingly.

NOTE: SDG 1.7.x is no longer supported. See the SDG project page for the most current, up-to-date versions.

Thanks, John

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM