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

Improve deletion of config.chunks entries with hint and retries

    • Fully Compatible
    • v5.0
    • Sharding EMEA 2021-05-31
    • 0

      SERVER-57221 highlighted performance problems on deletes for collections with more than one secondary index, showing that using an index hint can lead to better performance.

      As collections may have a lot of chunks:

      • Extend the catalog client in order to optionally accept an optional hint as argument for removing config documents.
      • Update the delete chunks call to pass a proper hint.
      • As NetworkInterfaceExceededTimeLimit can be hit in case of slow deletes, implement a retry logic for this specific case (just needed for legacy path, since SERVER-57311 is addressing the problem for DDL coordinators).

            Assignee:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: