Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-1409

SDK 4: macOS: tcp connections persist in ESTABLISHED or CLOSE_WAIT state

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.0.5
    • 4.0.3
    • library
    • None
    • macOS
    • 1

    Description

      Using the python client 4 on macOS, tcp connections are not closed leading to performance degradation and file descriptor exhaustion.

      The test program run on macOS Monterey with 100 cycles doing basic KV and query operations:

      % test/u_test_1.py --host 10.28.1.218

      ==> Attempt 100:
      Creating bucket
      Creating index
      Upsert 100 test docs
      Getting test docs
      Getting collection doc count
      Getting field from test doc
      API call test
      open: 0 connections: 1203 fds: 1212 children: 0 CLOSE_WAIT: 392 ESTABLISHED: 811 
      ====> done <====

      The same test on Linux:

      % test/u_test_1.py --host 10.28.1.218

      ==> Attempt 100:
      Creating bucket
      Creating index
      Upsert 100 test docs
      Getting test docs
      Getting collection doc count
      Getting field from test doc
      API call test
      open: 0 connections: 6 fds: 14 children: 0 ESTABLISHED: 6
      ====> done <====

      Attachments

        1. u_test_1.py
          21 kB
        2. u_test_2.py
          10 kB
        3. u_test_3.py
          10 kB

        Issue Links

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

          Activity

            People

              jared.casey Jared Casey
              michael.minichino Michael Minichino
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty