You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When call org.springframework.data.redis.core.RedisConnectionUtils#releaseConnection
isConnectionTransactional return true TransactionSynchronizationManager.isCurrentTransactionReadOnly() return false,so both unbindConnection and conn.close() are not executed.
thanks for reporting.
Can you provide a bit insight why you use the tx feature on the template instead of the one available via RedisCacheManager#setTransactionAware?
When set spring.redis.transaction.enable=true in /src/test/resources/application.yml,the test may fail.(Somtimes it is passed.Ithink the reason is that the server reuse the same thread for diffrent request and the redis connection is binded to thread)
When set spring.redis.transaction.enable=false the test is passed
GaoChao opened DATAREDIS-823 and commented
If set enableTransactionSupport=true and use RedisCache (Not use
@Transactional
Becausewe use
@Cacheable
)When call org.springframework.data.redis.core.RedisConnectionUtils#releaseConnection
isConnectionTransactional return true TransactionSynchronizationManager.isCurrentTransactionReadOnly() return false,so both unbindConnection and conn.close() are not executed.
The result is the connection is not released.
Affects: 1.8.11 (Ingalls SR11)
Attachments:
1 votes, 1 watchers
The text was updated successfully, but these errors were encountered: