Improve deletion of config.chunks entries with hint and retries

XMLWordPrintableJSON

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

      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
              Reporter:
              Pierlauro Sciarelli
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: