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

SDK4: macOS x86: tcp connections are not closed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • 4.1.x
    • 4.0.5
    • library
    • None
    • Darwin 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22 20:17:10 PDT 2022; root:xnu-8020.140.49~2/RELEASE_X86_64 x86_64
    • 1

    Description

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

      ./u_test_5.py --host 10.28.1.220 --cycles 25

      ==> Attempt 25:
      Creating bucket
      Creating index
      Upsert 100 test docs
      Getting test docs
      open: 0 connections: 52 fds: 59 children: 0 ESTABLISHED: 52 
      ====> done <====
      Success.

      Same test program on Linux:

      ==> Attempt 25:
      Creating bucket
      Creating index
      Upsert 100 test docs
      Getting test docs
      open: 0 connections: 4 fds: 12 children: 0 ESTABLISHED: 4
      ====> done <====
      Success.

      Attachments

        1. good.pcapng
          3.74 MB
        2. good.test_output.out
          4.59 MB
        3. problem.pcapng
          3.94 MB
        4. problem.test_output.out
          4.81 MB
        5. test_output.out
          4.65 MB
        6. u_test_5.py
          10 kB
        7. u_test_6.py
          7 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:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty