Closed
Description
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)