Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-1505

Connections never closed during replay

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.4.0-rc1
    • Fix Version/s: 3.4.0-rc3
    • Component/s: mongoreplay
    • Labels:
      None

      Description

      It appears that connections that are opened and then closed during recording are only opened during playback and never closed (until the replay exits). This means that extended recordings for a typical application that opens and closes connections frequently will likely run out of connections. This also creates a load consisting of ping commands that wasn't present in the recording.

      Example: app has 10 threads that each open a connection, insert a document, then close the connection. During recording (A-B) there were never more than 10 connections open at a time, but during playback (C-D, E-F) connections appear to accumulate indefinitely, up to 20 k connections in this run. (Note that the replay is also creating connections at twice the rate they were created on recording; I think this is TOOLS-1499).

      It appears that this is because connection open/close is not recorded as an event in the playback file.

        Attachments

          Activity

            People

            Assignee:
            gabriel.russell Gabriel Russell
            Reporter:
            bruce.lucas Bruce Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: