Skip to content

RedisTemplate with disabled transaction support can't use multi/exec in readOnly Transaction [DATAREDIS-1007] #1531

Closed
@spring-projects-issues

Description

@spring-projects-issues

alonWang opened DATAREDIS-1007 and commented

I believe this pr cause this, #214

to solve it,just need to modify here

RedisConnectionUtils.releaseConnection()

// when redis "transactional" & enableTranactionSupport & readOnly,then release connection.
if (isConnectionTransactional(conn, factory)&& enableTranactionSupport && TransactionSynchronizationManager.isCurrentTransactionReadOnly()) {
            unbindConnection(factory);
        } else if (!isConnectionTransactional(conn, factory)) {
            if (log.isDebugEnabled()) {
                log.debug("Closing Redis Connection");
            }
            conn.close();
        }

Affects: 2.2 RC1 (Moore), 1.8.22 (Ingalls SR22), 2.1.9 (Lovelace SR9)

Metadata

Metadata

Assignees

Labels

in: coreIssues in core supportstatus: invalidAn issue that we don't feel is valid

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions