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

Properly handle errors when processing data size action response for defragmentation

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 7.0.0-rc0, 6.0.5, 6.3.0-rc2
    • Component/s: None
    • Sharding EMEA
    • ALL
    • Sharding EMEA 2023-04-17

      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>.

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

              Created:
              Updated:
              Resolved: