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

LettucePoolingConnectionProvider contains unreleased connections while using RedisMessageListenerContainer

    XMLWordPrintable

    Details

      Description

      o.s.d.r.c.l.LettucePoolingConnectionProvider WARN LettucePoolingConnectionProvider contains unreleased connections
      
      i.l.c.RedisChannelHandler WARN Connection is already closed
      

      It seems LettuceSubscription close connection

      	protected void doClose() {
      		if (!getChannels().isEmpty()) {
      			pubsub.sync().unsubscribe(new byte[0]);
      		}
      		if (!getPatterns().isEmpty()) {
      			pubsub.sync().punsubscribe(new byte[0]);
      		}
      		pubsub.removeListener(this.listener);
      		pubsub.close();
      	}
      

      and didn't remove it from LettucePoolingConnectionProvider.poolRef 

        Attachments

          Activity

            People

            Assignee:
            mp911de Mark Paluch
            Reporter:
            quaff Yanming Zhou
            Last updater:
            Mark Paluch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: