Hazelcast: Transaction Propagation

Created on 24 Mar 2013  路  7Comments  路  Source: hazelcast/hazelcast

Support for transaction propagation level like:
requires, requires new, etc etc.

Currently there is no support for transaction propagation which makes nesting of transactions problematic.

Low Internal Core Enhancement

Most helpful comment

@burakcelebi why is it closed?
In general the question is why Hazelcast don't support "nested" transactions?

The thing is that we really need PROPAGATION_REQUIRES_NEW in our Spring managed transactions, but HazelcastTransactionManager doesn't allow to use this propagation because

This transaction manager doesn't supports nested transactions, since Hazelcast doesn't support them either.

If I understand correctly "nesteed" means multiply transactions within same thread, why it's not possible?

Maybe you can give some direction for us so we can contribute PROPAGATION_REQUIRES_NEW support for HazelcastTransactionManager?

All 7 comments

@pveentjer how does this going on ? would hazelcast support transaction propagation ?

Closed as internal request

@burakcelebi why is it closed?
In general the question is why Hazelcast don't support "nested" transactions?

The thing is that we really need PROPAGATION_REQUIRES_NEW in our Spring managed transactions, but HazelcastTransactionManager doesn't allow to use this propagation because

This transaction manager doesn't supports nested transactions, since Hazelcast doesn't support them either.

If I understand correctly "nesteed" means multiply transactions within same thread, why it's not possible?

Maybe you can give some direction for us so we can contribute PROPAGATION_REQUIRES_NEW support for HazelcastTransactionManager?

Still i am getting this issue in hazelcast 3.9

java.lang.IllegalStateException: Transaction cannot span multiple threads!
        at com.hazelcast.client.proxy.txn.TransactionProxy.checkThread(TransactionProxy.java:134)
        at com.hazelcast.client.proxy.txn.TransactionProxy.begin(TransactionProxy.java:76)
        at com.hazelcast.client.proxy.txn.TransactionContextProxy.beginTransaction(TransactionContextProxy.java:78)
        at com.reno.imdg.servicesimpl.HZMapServiceImpl.writeOrUpdateProcessMapSpaceEntity(HZMapServiceImpl.java:278)

@sbespalov: Afaik this was closed since it was created by an Hazelcast employee and @burakcelebi created an internal issue to track that.

Hazelcast doesn't support nested transactions or configurable propagation levels yet.

@mdogan do you know if there are any plans to have this implemented any time soon?

Hi @steve-todorov !
We have no plans to implement it as of yet. If there is much community interest, we shall consider it.

Was this page helpful?
0 / 5 - 0 ratings