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

Assess whether to expose cannotImplicitlyCreateCollection to the user

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 8.1.0-rc0, 8.0.0
    • Component/s: None
    • Catalog and Routing

      History of the Error
      Starting from 8.0 any creation must explicitly be invoked by a router. The shard will stop the write operation and throw cannotImplicitlyCreateCollection exception, which will cause the router to retry by running first (explicitly) a creation and after the same write that triggered the creation again.

      The issue

      In case of concurrent operations, the router can exhaust the attempts and show the error to the user. This can be a problematic because the error can be very confusing for the user. The exception means the shard is not authorized to create the collection implicitly. From a user perspective (which talks to a router) the implicit creation is allowed.

      Goal

      The goal of the ticket is to assess weather the error should be masked and presented to the user in another form.

            Assignee:
            Unassigned Unassigned
            Reporter:
            enrico.golfieri@mongodb.com Enrico Golfieri
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: