Skip to content

DATAREDIS-548 - Release connection after command execution in read-only transactions. #214

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

mp911de
Copy link
Member

@mp911de mp911de commented Aug 24, 2016

Previously, RedisConnection's were bound as transactional resource when used in the scope of a @Transactional(readOnly = true) method but not released on transaction completion. This was, because connections are not registered with a transaction synchronizer.

We now unbind and release the connection from the transaction resources after a Redis command is invoked. Redis read operations return always null while using RedisTemplate in a transaction so Redis read transactions are not useful.


Related ticket: DATAREDIS-548
Related PR: #209

…ly transactions.

Previously, RedisConnection's were bound as transactional resource when used in the scope of a @transactional(readOnly = true) method but not released on transaction completion. This was, because connections are not registered with a transaction synchronizer.

We now unbind and release the connection from the transaction resources after a Redis command is invoked. Redis read operations return always null while using RedisTemplate in a transaction so Redis read transactions are not useful.
christophstrobl pushed a commit that referenced this pull request Aug 30, 2016
…ly transactions.

We now unbind and release the connection from the transaction resources after a Redis command is invoked. Redis read operations return always null while using RedisTemplate in a transaction so Redis read transactions are not useful.

Previously, RedisConnection's were bound as transactional resource when used in the scope of a @transactional(readOnly = true) method but not released on transaction completion. This was, because connections are not registered with a transaction synchronizer.

Original Pull Request: #214
christophstrobl added a commit that referenced this pull request Aug 30, 2016
Added connection starvation test for operations during readonly transaction.

Original Pull Request: #214
christophstrobl pushed a commit that referenced this pull request Aug 30, 2016
…ly transactions.

We now unbind and release the connection from the transaction resources after a Redis command is invoked. Redis read operations return always null while using RedisTemplate in a transaction so Redis read transactions are not useful.

Previously, RedisConnection's were bound as transactional resource when used in the scope of a @transactional(readOnly = true) method but not released on transaction completion. This was, because connections are not registered with a transaction synchronizer.

Original Pull Request: #214
christophstrobl added a commit that referenced this pull request Aug 30, 2016
Added connection starvation test for operations during readonly transaction.

Original Pull Request: #214
christophstrobl pushed a commit that referenced this pull request Aug 30, 2016
…ly transactions.

We now unbind and release the connection from the transaction resources after a Redis command is invoked. Redis read operations return always null while using RedisTemplate in a transaction so Redis read transactions are not useful.

Previously, RedisConnection's were bound as transactional resource when used in the scope of a @transactional(readOnly = true) method but not released on transaction completion. This was, because connections are not registered with a transaction synchronizer.

Original Pull Request: #214
christophstrobl added a commit that referenced this pull request Aug 30, 2016
Added connection starvation test for operations during readonly transaction.

Original Pull Request: #214
@christophstrobl christophstrobl deleted the issue/DATAREDIS-548 branch August 30, 2016 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants