Skip to content

Connection should be released when used with read-only transactions [DATAREDIS-548] #1124

Closed
@spring-projects-issues

Description

@spring-projects-issues

Mark Paluch opened DATAREDIS-548 and commented

A RedisTemplate with enabled transaction support does not close the connection when used in read-only transactions.

@Transactional(readOnly = true)
public void readonly() {
          template.opsForValue().set("key", "value");
}

RedisTemplate.execute performs a check after the callback whether transaction support is enabled and if so, it skips connection releasing


Affects: 1.6.4 (Gosling SR4)

Reference URL: #209

Issue Links:

  • DATAREDIS-988 Command timed out if execute multi/exec in readonly database transaction

Referenced from: pull request #214

Backported to: 1.7.3 (Hopper SR3), 1.6.5 (Gosling SR5)

Metadata

Metadata

Assignees

Labels

in: coreIssues in core supporttype: bugA general bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions