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

Most recv errors do not increment shared memory counters

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None

    Description

      mongoc_counter_protocol_ingress_error_inc is called in mongoc_cluster_try_recv to update the shared memory counters when there is an error reading from the application connection.

      mongoc_cluster_run_command_opquery and mongoc_cluster_run_opmsg do not call this. And the single and multi-threaded monitoring code does not call it either.

      For deduplicating the network error logic on application connections, it may be good to add an argument to _handle_network_error to indicate whether it is a read or write error, and if it is a read error, call mongoc_counter_protocol_ingress_error_inc.

      Though monitoring connections will likely need to call this separately.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: