[SERVER-53704] Rename one of "mapreduce" keys in "serverStatus" output. Created: 12/Jan/21  Updated: 14/Apr/22

Status: Open
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Minor - P4
Reporter: Daniel Coupal Assignee: Katya Kamenieva
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Participants:

 Description   

The serverStatus output section collected in "last pings" contains two keys named:

  • lastPingData.serverStatus.metrics.commands.mapReduce
  • lastPingData.serverStatus.metrics.commands.mapreduce

These two keys are within the "serverStatus" section of the document.

Names that only vary by case sensitivity is perfectly legal in BSON and JSON.
However, it causes issues for SQL tools that try to read the document. As a note, this issue was noticed while using Presto to query the dataset.

The first key contains:

                        "mapReduce": {
                            "total": 0,
                            "failed": 0
                        },
 

While the second key contains:

                        "mapreduce": {
                            "shardedfinish": {
                                "total": 0,
                                "failed": 0
                            }
                        },

Because this second key is the only command that uses this shape of using a "shardedfinish" sub-object, we could replace it by something like:

                        "mapreduce_shardedfinish": {
                            "total": 0,
                            "failed": 0
                        },
 

The above is one suggestion.
The request is to have names that differ for more than their case for the two keys.


Generated at Thu Feb 08 05:31:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.