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

mongoreplay cannot safely terminate on one core

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.0-rc0, 3.4.15
    • Component/s: mongoreplay
    • Labels:
      None

      Description

      The pcap library (github.com/google/gopacket/pcap) locks the thread when it makes potentially-blocking CGO calls. With GOMAXPROCS set to 1 on single-core machines (or when compiled with go version <1.5), no other goroutines can run during this time, including the goroutine which listens for signals (TERM/INT/HUP). In this scenario, mongotape probably has to be closed with SIGABRT, which unsafely circumvents any end-of-program executions.

        Attachments

          Activity

            People

            Assignee:
            william.banfield William Banfield
            Reporter:
            lucas.morales Lucas Morales
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: