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

WiredTiger alter call in alterIdentMetadata should report index information on failure

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.2.0-rc3
    • Affects Version/s: None
    • Component/s: WiredTiger
    • Labels:
      None
    • Fully Compatible
    • v4.2
    • Execution Team 2019-07-15
    • 19

      Presently, WiredTigerKVEngine::alterIdentMetadata uses invariantWTOK on its call to WiredTiger alter. As a result, if the alter fails for some reason, e.g., "No such file or directory", it results in the following cryptic log line:

      Invariant failure: session.getSession()->alter(session.getSession(), uri.c_str(), alterString.c_str()) resulted in status UnknownError: 2: No such file or directory at src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp 1341

      It would be more helpful to specify extra information about the offending index, e.g., the URI string, if the alter call fails.

            Assignee:
            maria.vankeulen@mongodb.com Maria van Keulen
            Reporter:
            maria.vankeulen@mongodb.com Maria van Keulen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: