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

mongo shell does not re-check for startup warnings on reconnect

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • Server Tooling & Methods

      When the mongo shell first starts up, it displays server startup warnings. However, if the server has been stopped and re-started — which might change its startup warnings — the shell does not inform the user of the server's startup warnings when it successfully reconnects. It would be better if it did, so that users/admins are fully informed about the current state of the server before proceeding to perform operations on it.

      The naive approach would just be to fetch and re-display all startup warnings on reconnect. However, this would re-display the (unchanged) startup warnings if the network connection is lost. More advanced approaches could include:

      • Attempting to diff the startup warnings compared to previously, and not re-displaying them if they are identical
      • Attempt to distinguish between network disconnects and server restarts by checking the server's uptime (eg. from serverStatus), and only re-showing the startup warnings if the server uptime is less than the length of time that the shell's been disconnected. This is more complex because the shell doesn't notice immediately when the connection is lost.

            Assignee:
            backlog-server-stm Backlog - Server Tooling and Methods (STM) (Inactive)
            Reporter:
            kevin.pulo@mongodb.com Kevin Pulo
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: