Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-1643

Network buffers associated with IO context leak in case of network failure

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.3.13
    • None
    • None
    • None
    • 1
    • SDK30, SDK32

    Description

      When network link is broken (pf or iptables), libcouchbase will continue retying operations until timeout, but the buffers that has been allocated during operation retry are not getting properly deallocated when the server purges pending operations.

      Libcouchbase should clean the IO context object properly in case of network error.

      To reproduce, just run some workload in the loop and cut the network link using firewall.

      Useful commands for pf on macOS

      Block traffic:

      $ cat ~/block.conf
      block drop in from 192.168.107.128
      block drop in from 192.168.107.129
      block drop in from 192.168.107.130
      

      sudo pfctl -f ~/block.conf && sudo pfctl -e
      

      Restore traffic:

      sudo pfctl -d && sudo pfctl -F all
      

      Attachments

        Issue Links

          Activity

            People

              avsej Sergey Avseyev
              avsej Sergey Avseyev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty