[SERVER-7458] Seeing duplicate databases in serverStatus.locks with different data Created: 24/Oct/12  Updated: 05/Nov/12  Resolved: 24/Oct/12

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

Type: Bug Priority: Major - P3
Reporter: Ryan Nitz Assignee: Michael O'Brien
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File pull.cpp    
Operating System: ALL
Participants:

 Description   

Below is a snippet from db.serverStatus() with duplicate database names:

        "mmsdbhoursdata" : {
            "timeLockedMicros" : {
                "r" : NumberLong(9550130),
                "w" : NumberLong(40682)
            },
            "timeAcquiringMicros" : {
                "r" : NumberLong(1968850),
                "w" : NumberLong(15639)
            }
        },
        "mmsdbhoursdata" : {
            "timeLockedMicros" : {
                "r" : NumberLong(3037514),
                "w" : NumberLong(10226)
            },
            "timeAcquiringMicros" : {
                "r" : NumberLong(822058),
                "w" : NumberLong(4347)
            }
        },

I ran this in the console and a c++ program directly (attached).

When calling listDatabases, it does not show up twice.



 Comments   
Comment by Ryan Nitz [ 24/Oct/12 ]

This was related to issues caused by the java driver. There are unprintable characters and there are indeed two different names that just appear the same in human readable format.

Generated at Thu Feb 08 03:14:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.