Skip to content

Fix Race Condition in Integration Tests Using Redis SessionEventRegistry #3398

@rwinch

Description

@rwinch

The integration tests that use SessionEventRegistry assume that there is only a single event type for each session id. This leads to race conditions that result in ClassCastExceptions. For example:

ReactiveRedisIndexedSessionRepositoryITests > findByPrincipalNameWhenExpireKeyEventThenRemovesIndexAndSessionExpiredEvent() FAILED
    java.lang.ClassCastException at ReactiveRedisIndexedSessionRepositoryITests.java:171

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions