Uploaded image for project: 'Spring Data Redis'
  1. Spring Data Redis
  2. DATAREDIS-775

ClassCastException when using Redis Cluster with connection pooling

    Details

      Description

      Obtaining a connection via LettuceConnectionFactory.getClusterConnection(…) using connection pooling fails with ClassCastException.

      java.lang.ClassCastException: org.springframework.data.redis.connection.lettuce.LettucePoolingConnectionProvider cannot be cast to org.springframework.data.redis.connection.lettuce.ClusterConnectionProvider
      
      	at org.springframework.data.redis.connection.lettuce.LettuceClusterConnection.getClient(LettuceClusterConnection.java:157)
      	at org.springframework.data.redis.connection.lettuce.LettuceClusterConnection.<init>(LettuceClusterConnection.java:148)
      	at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.getClusterConnection(LettuceConnectionFactory.java:349)
      	at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.getConnection(LettuceConnectionFactory.java:322)
      

        Attachments

          Activity

            People

            • Assignee:
              mp911de Mark Paluch
              Reporter:
              mp911de Mark Paluch
              Last updater:
              Mark Paluch
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: