Uploaded image for project: 'Couchbase Ruby client library'
  1. Couchbase Ruby client library
  2. RCBC-187

Memory leak in Couchbase::Bucket

    XMLWordPrintable

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Won't Do
    • None
    • None
    • None
    • Security Level: Public
    • None
    • couchbase 1.3.10 gem
      libcouchbase 2.4.3

    Description

      https://forums.couchbase.com/t/couchbase-bucket-leaks-memory/1932

      The following test code:

      def loop_bucket_gets
      bucket = Couchbase::Bucket.new({:node_list => ['xxx.xxx.xxx.xxx:8091', 'yyy.yyy.yyy.yyy:8091'],
      :bucket => 'Foo',
      :pool => 'default',
      :expires_in => 1.day,
      :default_format => :marshal,
      :key_prefix => '_foo'
      })

      i = 0
      loop do
      begin
      i += 1
      bucket.get "ABC#

      {i}

      "
      rescue ::Couchbase::Error::Base => e
      nil
      end
      end
      end

      When I execute the method in the rails console, *the memory leaks*.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          Reproduced in both ruby 2.1.3, ruby-2.0.0-p481.

          lazarus.lazaridis lazarus.lazaridis added a comment - Reproduced in both ruby 2.1.3, ruby-2.0.0-p481.

          Branch 1.3.x is not supported
          All development goes on master branch (and 3.0.0 release coming soon)

          avsej Sergey Avseyev added a comment - Branch 1.3.x is not supported All development goes on master branch (and 3.0.0 release coming soon)

          People

            avsej Sergey Avseyev
            avsej Sergey Avseyev
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty