Use different exception for Unable to Write to Collection nss errors.

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Declined
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Summary

      In several places we are throwing Write Conflict Exception for scenarios where we are 'Unable to write to collection nss...'. Those are unrelated to storage engine Write Conflicts. We should use a different error code and handling policy on those situations.

      • shard_role.cpp::verifyDbAndCollection (here and here)
      • catalog_raii.cpp::verifyDbAndCollection (here and here)

            Assignee:
            Unassigned
            Reporter:
            Ernesto Rodriguez Reina
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: