Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-75188

Properly handle errors when processing data size action response for defragmentation

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • 7.0.0-rc0, 6.0.5, 6.3.0-rc2
    • None
    • Sharding EMEA
    • ALL
    • Sharding EMEA 2023-04-17

    Description

      In this line it is assumed that the response can be parsed as a StatusWith<DataSizeResponse>. However in case of errors it will be a simple Status.

      This will trigger an unhandled std::exception crashing the server. A solution would be to adopt the approach currently followed to handle exceptions when trying to parse a StatusWith<NumMergedChunks>.

      Attachments

        Activity

          People

            allison.easton@mongodb.com Allison Easton
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: