Error message when adding a node to the shard cluster: "{"error":{"code":26,"codeName":"NamespaceNotFound","errmsg":"Unable to retrieve storageStats in $collStats stage :: caused by :: Collection [local.oplog.rs] not found."},"$db":"local"}}}"

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Critical - P2
    • None
    • Affects Version/s: 8.0.9
    • Component/s: None
    • None
    • ALL
    • Hide

      1、create shard cluster;

      2、stop all server, start with node1 fault;

      3、add new node1 jion cluster;

      Show
      1、create shard cluster; 2、stop all server, start with node1 fault; 3、add new node1 jion cluster;
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      {"t":\{"$date":"2025-11-18T19:03:02.961+08:00"}

      ,"s":"I",  "c":"CONTROL",  "id":8423403, "svc":"S", "ctx":"initandlisten","msg":"mongod startup complete","attr":{"Summary of time elapsed":{"Startup from clean shutdown?":true,"Statistics":{"Set up periodic runner":"0 ms","Set up online certificate status protocol manager":"0 ms","Transport layer setup":"0 ms","Run initial syncer crash recovery":"0 ms","Create storage engine lock file in the data directory":"0 ms","Get metadata describing storage engine":"0 ms","Create storage engine":"742 ms","Write current PID to file":"0 ms","Write a new metadata for storage engine":"0 ms","Initialize FCV before rebuilding indexes":"0 ms","Drop abandoned idents and get back indexes that need to be rebuilt or builds that need to be restarted":"0 ms","Rebuild indexes for collections":"0 ms","Build user and roles graph":"0 ms","Set up the background thread pool responsible for waiting for opTimes to be majority committed":"0 ms","Initialize the sharding components for a config server":"1 ms","Start up the replication coordinator":"80 ms","Create an oplog view for tenant migrations":"10 ms","Ensure the change stream collections on startup contain consistent data":"0 ms","Write startup options to the audit log":"0 ms","Start transport layer":"0 ms","_initAndListen total elapsed time":"857 ms"}}}}

      {"t":\{"$date":"2025-11-18T19:03:02.963+08:00"}

      ,"s":"I",  "c":"SH_REFR",  "id":4619903, "svc":"S", "ctx":"CatalogCache-0","msg":"Error refreshing cached collection","attr":{"namespace":"config.system.sessions","durationMillis":2,"error":"Location7918300: feature compatibility version is not initialized"}}

      {"t":\{"$date":"2025-11-18T19:03:02.963+08:00"}

      ,"s":"I",  "c":"CONTROL",  "id":20712,   "svc":"S", "ctx":"LogicalSessionCacheReap","msg":"Sessions collection is not set up; waiting until next sessions reap interval","attr":{"error":"Location7918300: feature compatibility version is not initialized"}}

      {"t":\{"$date":"2025-11-18T19:03:02.963+08:00"}

      ,"s":"I",  "c":"CONTROL",  "id":20710,   "svc":"S", "ctx":"LogicalSessionCacheRefresh","msg":"Failed to refresh session cache, will try again at the next refresh interval","attr":{"error":"Location7918300: feature compatibility version is not initialized"}}

      {"t":\{"$date":"2025-11-18T19:03:03.001+08:00"}

      ,"s":"W",  "c":"QUERY",    "id":23799,   "svc":"S", "ctx":"ftdc","msg":"Aggregate command executor error","attr":{"error":

      {"code":26,"codeName":"NamespaceNotFound","errmsg":"Unable to retrieve storageStats in $collStats stage :: caused by :: Collection [local.oplog.rs] not found."}

      ,"stats":{},"cmd":{"aggregate":"oplog.rs","cursor":{},"pipeline":[{"$collStats":{"storageStats":

      {"waitForLock":false,"numericOnly":true}

      }}],"$db":"local"}}}

      {"t":\{"$date":"2025-11-18T19:03:03.001+08:00"}

      ,"s":"W",  "c":"QUERY",    "id":23799,   "svc":"S", "ctx":"ftdc","msg":"Aggregate command executor error","attr":{"error":

      {"code":26,"codeName":"NamespaceNotFound","errmsg":"Unable to retrieve storageStats in $collStats stage :: caused by :: Collection [config.transactions] not found."}

      ,"stats":{},"cmd":{"aggregate":"transactions","cursor":{},"pipeline":[{"$collStats":{"storageStats":

      {"waitForLock":false,"numericOnly":true}

      }}],"$db":"config"}}}

      {"t":\{"$date":"2025-11-18T19:03:03.001+08:00"}

      ,"s":"W",  "c":"QUERY",    "id":23799,   "svc":"S", "ctx":"ftdc","msg":"Aggregate command executor error","attr":{"error":

      {"code":26,"codeName":"NamespaceNotFound","errmsg":"Unable to retrieve storageStats in $collStats stage :: caused by :: Collection [config.image_collection] not found."}

      ,"stats":{},"cmd":{"aggregate":"image_collection","cursor":{},"pipeline":[{"$collStats":{"storageStats":

      {"waitForLock":false,"numericOnly":true}

      }}],"$db":"config"}}}

      {"t":\{"$date":"2025-11-18T19:03:03.012+08:00"}

      ,"s":"W",  "c":"CONTROL",  "id":636300,  "svc":"S", "ctx":"ftdc","msg":"Use of deprecated server parameter name","attr":{"deprecatedName":"internalQueryCacheSize","canonicalName":"internalQueryCacheMaxEntriesPerCollection"}}

      {"t":\{"$date":"2025-11-18T19:03:03.012+08:00"}

      ,"s":"W",  "c":"CONTROL",  "id":636300,  "svc":"S", "ctx":"ftdc","msg":"Use of deprecated server parameter name","attr":{"deprecatedName":"oplogSamplingLogIntervalSeconds","canonicalName":"collectionSamplingLogIntervalSeconds"}}

      {"t":\{"$date":"2025-11-18T19:03:03.012+08:00"}

      ,"s":"W",  "c":"NETWORK",  "id":23803,   "svc":"S", "ctx":"ftdc","msg":"Use of deprecated server parameter 'sslMode', please use 'tlsMode' instead."}

      {"t":\{"$date":"2025-11-18T19:03:03.012+08:00"}

      ,"s":"W",  "c":"CONTROL",  "id":636300,  "svc":"S", "ctx":"ftdc","msg":"Use of deprecated server parameter name","attr":{"deprecatedName":"wiredTigerConcurrentReadTransactions","canonicalName":"storageEngineConcurrentReadTransactions"}}

      {"t":\{"$date":"2025-11-18T19:03:03.012+08:00"}

      ,"s":"W",  "c":"CONTROL",  "id":636300,  "svc":"S", "ctx":"ftdc","msg":"Use of deprecated server parameter name","attr":{"deprecatedName":"wiredTigerConcurrentWriteTransactions","canonicalName":"storageEngineConcurrentWriteTransactions"}}

      {"t":\{"$date":"2025-11-18T19:03:03.069+08:00"}

      ,"s":"I",  "c":"-",        "id":4939300, "svc":"S", "ctx":"monitoring-keys-for-HMAC","msg":"Failed to refresh key cache","attr":{"error":"ReadConcernMajorityNotAvailableYet: Read concern majority reads are currently not possible.","nextWakeupMillis":400}}

      {"t":\{"$date":"2025-11-18T19:03:03.469+08:00"}

      ,"s":"I",  "c":"-",        "id":4939300, "svc":"S", "ctx":"monitoring-keys-for-HMAC","msg":"Failed to refresh key cache","attr":{"error":"ReadConcernMajorityNotAvailableYet: Read concern majority reads are currently not possible.","nextWakeupMillis":600}}

      {"t":\{"$date":"2025-11-18T19:03:04.000+08:00"}

      ,"s":"W",  "c":"QUERY",    "id":23799,   "svc":"S", "ctx":"ftdc","msg":"Aggregate command executor error","attr":{"error":

      {"code":26,"codeName":"NamespaceNotFound","errmsg":"Unable to retrieve storageStats in $collStats stage :: caused by :: Collection [local.oplog.rs] not found."}

      ,"stats":{},"cmd":{"aggregate":"oplog.rs","cursor":{},"pipeline":[{"$collStats":{"storageStats":

      {"waitForLock":false,"numericOnly":true}

      }}],"$db":"local"}}}

            Assignee:
            Unassigned
            Reporter:
            峰 王
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: