Details
-
Task
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
None
-
Sharding EMEA
-
Fully Compatible
Description
We should emit a log for every inconsistency found while running checkMetadataConsistency command.
The inconsistency details should be included in BSON formatting. The same format use in the reply of the command.
Atlas will then create a log injection rule to automatically detect those inconsistencies.
The log will be emitted with Log ID 7514800 at WARNING level. It could be emitted both from shards and configserver depending which node spotted the inconsistency.
The format of the log is the following:
{
|
"t":{"$date":"2023-04-05T15:02:23.765+00:00"},
|
"s":"W",
|
"c":"SHARDING",
|
"id":7514800,
|
"ctx":"conn44",
|
"msg":"Detected sharding metadata inconsistency",
|
"attr":{
|
"inconsistency":{
|
"type":"<<<INCONSISTENCY TYPE>>>",
|
"description":"<<<HUMAN READABLE DESCRIPTION>>>"
|
"details":\{ <<<BSON object with details about the specific inconsistency>>>}
|
}
|
}
|
}
|