Skip to content

Redis session attributes not thread safe #3385

Open
@imazzeii

Description

@imazzeii

the following methods

org.springframework.session.data.redis.ReactiveRedisSessionRepository.createSession()
org.springframework.session.data.redis.RedisSessionMapper.apply(String sessionId, Map<String, Object> map)

create a new "org.springframework.session.MapSession" backed by ReactiveRedisSessionRepository.RedisSession, so getAttributes() return an hashmap; it should be a concurrent hashmap since reactor methods could be executed in different threads

also "ReactiveRedisSessionRepository.RedisSession.delta" should be thread safe

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions