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

Failure to decompress is handled inconsistently

    XMLWordPrintableJSON

Details

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

    Description

      A failure to decompress an OP_COMPRESSED message is inconsistently considered a network error.

      mongoc_cluster_try_recv and mongoc_cluster_run_command_opquery does not consider it a network error.

      mongoc_cluster_run_opmsg considers it a network error, and run through the network error logic (close the application connection, and if the generation is not stale, mark the server unknown and clear the pool).

      I'm not sure under what situations there could be a failure to decompress an OP_COMPRESSED message. That needs to be answered. Whatever the answer is, the behavior should be consistent.

      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: