Support DDL commands retry from the router

XMLWordPrintableJSON

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

      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:
            [DO NOT USE] Backlog - Sharding EMEA
            Reporter:
            Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: