Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-3808

SRV polling thread uses 100% CPU when connected to a replica set

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • 1.17.2
    • Affects Version/s: 1.17.0
    • Component/s: None
    • None
    • Environment:
      Ubuntu 18 / 20 and macOS

      Implementation of the client pool has resulted in a runaway thread consuming 100% of CPU on a task (from what I can gather by tracing it is srv_polling_run within the libmongoc-1.0.0 dynamic library). It is reproducible on my macOS development machine and my docker 18 and 20 distribution containers. 

      My use of the mongocxx:: pool class is standard with the documentation. 

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            rylandva@med.umich.edu Ryan Landvater
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: