Skip to content

Spring Session Redis should use Lifecycle instead of DisposableBean #3435

Open

Description

@rwinch

Using DisposableBean is causing conflicts with Spring Data Redis's Connection factories that have migrated to Lifecycle to start/stop connection pools for snapshotting. Lifecycle.stop is invoked too early for Spring Session. Here are a few related tickets:

spring-projects/spring-data-redis#3076
spring-projects/spring-data-redis#2983

We should look into migrating InitializingBean as well.

cc @mp911de

Activity

  1. added
    type: bug
    status: waiting-for-triage
    status: ideal-for-contribution
    and removed
    status: waiting-for-triage
    on Jul 2, 2025
  2. seung-hun-h commented on Aug 9, 2025

    @seung-hun-h

    @rwinch Could I take this issue?

  3. added 2 commits that reference this issue on Aug 13, 2025
    7aa5c48
    cdca5cb
  4. injae-kim commented on Aug 13, 2025

    @injae-kim

    Fix PR: #3460 PTAL :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: redisstatus: ideal-for-contributiontype: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions