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

Support DDL commands retry from the router

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Sharding EMEA

      If a DDL operation is sent by the router to a databases's non-primary shard, the error is currently not retryable.

      There should be a new kind of "retryable" exception in order to implement something similar to the following logic:

      retries = 0;
      do{
       try{
          // best effor get db primary
          // call DDL on db primary
       }catch(/* not primary node for db */){
           retries++;
       }
      }while(retries < 3);
      

            Assignee:
            backlog-server-sharding-emea [DO NOT USE] Backlog - Sharding EMEA
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: