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

Improve the recordPreImages incompatibility on startup error message

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
    • Fully Compatible
    • Execution Team 2021-09-06, Execution Team 2021-09-20

      This error is coming from here and can be hit during startup when we initialize a Collection instance.

      {"t":\{"$date":"2021-03-23T21:50:03.402+00:00"}

      ,"s":"E", "c":"STORAGE", "id":20557, "ctx":"initandlisten","msg":"DBException in initAndListen, terminating","attr":{"error":"InvalidOptions: recordPreImages collection option is not supported on shards or config servers"}}

       It'd be nice if the error message included the namespace string, so the user can identify what to modify, and then add a suggestion to restart as a non-shard and use collmod to remove the setting (I think it's unsettable? Maybe double check...).

            Assignee:
            josef.ahmad@mongodb.com Josef Ahmad
            Reporter:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: