Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-48211

[BP 7.0.2] XDCR - File descriptor leak in XDCR

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 6.6.0, 6.6.1, 6.6.2, 7.0.0, 6.6.3, 7.0.1
    • 7.0.2
    • XDCR
    • Untriaged
    • 1
    • No

    Description

      In a recent case from the field we've seen XDCR holding 70,000 sockets that do not have a process on the other side of the connection. When lsof is run, these sockets show up as follows:

       
      COMMAND     PID    USER   FD      TYPE    DEVICE SIZE/OFF      NODE NAME
      ...
      goxdcr.bi 24440 cbadmin    5u     sock       0,7      0t0 303953540 protocol: TCP
      goxdcr.bi 24440 cbadmin    6u     sock       0,7      0t0 211821560 protocol: TCP
      goxdcr.bi 24440 cbadmin   10u     sock       0,7      0t0 216966092 protocol: TCP
      ...
      

      In this case the user had set the file descriptor limit to 70k and so at this point XDCR is unable to create new connections. This issue was previously tracked in MB-44182 and believed to be fixed, but it seems that the core issue hasn't been completely fixed.

      Attachments

        Issue Links

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

          Activity

            neil.huang Neil Huang created issue -
            neil.huang Neil Huang made changes -
            Field Original Value New Value
            Link This issue Clones MB-47943 [ MB-47943 ]
            neil.huang Neil Huang made changes -
            Fix Version/s 7.0.2 [ 18012 ]
            Fix Version/s Neo [ 17615 ]
            Is this a Regression? Unknown [ 10452 ] No [ 10451 ]
            Affects Version/s 6.6.3 [ 17420 ]
            Affects Version/s 7.0.0 [ 17233 ]
            Affects Version/s 6.6.1 [ 17002 ]
            Affects Version/s 6.6.0 [ 16787 ]
            Affects Version/s 7.0.1 [ 17104 ]
            neil.huang Neil Huang made changes -
            Link This issue is a backport of MB-47943 [ MB-47943 ]
            neil.huang Neil Huang made changes -
            Link This issue Clones MB-47943 [ MB-47943 ]
            neil.huang Neil Huang made changes -
            Link This issue is triggering CBSE-10484 [ CBSE-10484 ]
            wayne Wayne Siu made changes -
            Link This issue blocks MB-46308 [ MB-46308 ]
            wayne Wayne Siu made changes -
            Labels approved-for-7.0.2
            neil.huang Neil Huang made changes -
            Assignee Neil Huang [ neil.huang ] Pavithra Mahamani [ pavithra.mahamani ]
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]
            pavithra.mahamani Pavithra Mahamani made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

            People

              pavithra.mahamani Pavithra Mahamani
              neil.huang Neil Huang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty