[SERVER-1808] duplicate db shows in mongo shell Created: 16/Sep/10  Updated: 12/Jul/16  Resolved: 02/Sep/11

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

Type: Bug Priority: Minor - P4
Reporter: Brennan Pang Assignee: Unassigned
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CentOS 5.4, mongo shell 1.6.2


Issue Links:
Depends
Operating System: ALL
Participants:

 Description   

Step to reproduce:
1) launch mongo shell
2) type 'show dbs'
3) Database names are shown twice in a sporadic manner. Sometimes when you exit the shell and relaunch it it only shows the name once and then it reappears again. In the example below, it shows "platform_asset" twice.

bash-3.2# ./mongo
MongoDB shell version: 1.6.2
connecting to: test
> show dbs
admin
asset
local
platform_asset
platform_asset   
test
> 



 Comments   
Comment by Eliot Horowitz (Inactive) [ 02/Sep/11 ]

this was fixed in 1.8.x

Comment by Brennan Pang [ 17/Sep/10 ]

Thu Sep 16 16:13:38 [interruptThread] shutdown: going to close listening sockets...
Thu Sep 16 16:13:38 [interruptThread] going to close listening socket: 28
Thu Sep 16 16:13:38 [interruptThread] going to close listening socket: 29
Thu Sep 16 16:13:38 [interruptThread] going to close listening socket: 30
Thu Sep 16 16:13:38 [interruptThread] going to close listening socket: 31
Thu Sep 16 16:13:38 [interruptThread] shutdown: going to flush oplog...
Thu Sep 16 16:13:38 [interruptThread] shutdown: going to close sockets...
Thu Sep 16 16:13:38 [interruptThread] shutdown: waiting for fs preallocator...
Thu Sep 16 16:13:38 [interruptThread] shutdown: closing all files...
Thu Sep 16 16:13:38 closeAllFiles() finished

Thu Sep 16 16:13:38 [interruptThread] shutdown: removing fs lock...
Thu Sep 16 16:13:38 dbexit: really exiting now

Thu Sep 16 16:13:48 MongoDB starting : pid=29787 port=27017 dbpath=/data/mongodb/ master=1 64-bit
Thu Sep 16 16:13:48 db version v1.6.2, pdfile version 4.5
Thu Sep 16 16:13:48 git version: aef371ecf5d2a824f16ccdc3b745f3702165602f
Thu Sep 16 16:13:48 sys info: Linux domU-12-31-39-06-79-A1 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41
Thu Sep 16 16:13:48 [initandlisten] waiting for connections on port 27017
Thu Sep 16 16:13:48 [websvr] web admin interface listening on port 28017
Thu Sep 16 16:14:16 [initandlisten] connection accepted from 127.0.0.1:58450 #1
Thu Sep 16 16:14:54 [initandlisten] connection accepted from 127.0.0.1:43498 #2
Thu Sep 16 16:19:52 [initandlisten] connection accepted from 172.26.92.3:53765 #3
Thu Sep 16 16:35:45 got kill or ctrl c or hup signal 2 (Interrupt), will terminate after current cmd ends
Thu Sep 16 16:35:45 [interruptThread] now exiting
Thu Sep 16 16:35:45 dbexit:

Thu Sep 16 16:35:45 [interruptThread] shutdown: going to close listening sockets...
Thu Sep 16 16:35:45 [interruptThread] going to close listening socket: 28
Thu Sep 16 16:35:45 [interruptThread] going to close listening socket: 29
Thu Sep 16 16:35:45 [interruptThread] going to close listening socket: 30
Thu Sep 16 16:35:45 [interruptThread] going to close listening socket: 31
Thu Sep 16 16:35:45 [interruptThread] shutdown: going to flush oplog...
Thu Sep 16 16:35:45 [interruptThread] shutdown: going to close sockets...
Thu Sep 16 16:35:45 [interruptThread] shutdown: waiting for fs preallocator...
Thu Sep 16 16:35:45 [interruptThread] shutdown: closing all files...
Thu Sep 16 16:35:45 closeAllFiles() finished

Thu Sep 16 16:35:45 [interruptThread] shutdown: removing fs lock...
Thu Sep 16 16:35:45 dbexit: really exiting now

Thu Sep 16 16:36:18 MongoDB starting : pid=30423 port=27017 dbpath=/data/mongodb/ master=1 64-bit
Thu Sep 16 16:36:18 db version v1.6.2, pdfile version 4.5
Thu Sep 16 16:36:18 git version: aef371ecf5d2a824f16ccdc3b745f3702165602f
Thu Sep 16 16:36:18 sys info: Linux domU-12-31-39-06-79-A1 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41
Thu Sep 16 16:36:18 [initandlisten] waiting for connections on port 27017
Thu Sep 16 16:36:18 [websvr] web admin interface listening on port 28017
Thu Sep 16 16:36:28 [initandlisten] connection accepted from 127.0.0.1:40729 #1
Thu Sep 16 16:37:05 [initandlisten] connection accepted from 172.26.92.4:63621 #2
Thu Sep 16 16:37:05 [initandlisten] connection accepted from 172.26.92.4:63627 #3
Thu Sep 16 16:37:06 got kill or ctrl c or hup signal 2 (Interrupt), will terminate after current cmd ends
Thu Sep 16 16:37:06 [interruptThread] now exiting
Thu Sep 16 16:37:06 dbexit:

Thu Sep 16 16:37:06 [interruptThread] shutdown: going to close listening sockets...
Thu Sep 16 16:37:06 [interruptThread] going to close listening socket: 28
Thu Sep 16 16:37:06 [interruptThread] going to close listening socket: 29
Thu Sep 16 16:37:06 [interruptThread] going to close listening socket: 30
Thu Sep 16 16:37:06 [interruptThread] going to close listening socket: 31
Thu Sep 16 16:37:06 [interruptThread] shutdown: going to flush oplog...
Thu Sep 16 16:37:06 [interruptThread] shutdown: going to close sockets...
Thu Sep 16 16:37:06 [interruptThread] shutdown: waiting for fs preallocator...
Thu Sep 16 16:37:06 [interruptThread] shutdown: closing all files...
Thu Sep 16 16:37:06 closeAllFiles() finished

Thu Sep 16 16:37:06 [interruptThread] shutdown: removing fs lock...
Thu Sep 16 16:37:06 dbexit: really exiting now

Thu Sep 16 16:37:17 MongoDB starting : pid=30486 port=27017 dbpath=/data/mongodb/ master=1 64-bit
Thu Sep 16 16:37:17 db version v1.6.2, pdfile version 4.5
Thu Sep 16 16:37:17 git version: aef371ecf5d2a824f16ccdc3b745f3702165602f
Thu Sep 16 16:37:17 sys info: Linux domU-12-31-39-06-79-A1 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41
Thu Sep 16 16:37:17 [initandlisten] waiting for connections on port 27017
Thu Sep 16 16:37:17 [websvr] web admin interface listening on port 28017
Thu Sep 16 16:37:29 [initandlisten] connection accepted from 127.0.0.1:40730 #1
Thu Sep 16 17:02:54 [initandlisten] connection accepted from 172.26.92.3:55108 #2
Thu Sep 16 17:04:49 [initandlisten] connection accepted from 172.26.92.4:63704 #3
Thu Sep 16 17:05:42 [initandlisten] connection accepted from 172.26.92.3:55154 #4
Thu Sep 16 17:05:43 [initandlisten] connection accepted from 172.26.92.3:55165 #5
Thu Sep 16 17:05:44 [initandlisten] connection accepted from 172.26.92.3:55182 #6
Thu Sep 16 17:05:44 [initandlisten] connection accepted from 172.26.92.3:55185 #7
Thu Sep 16 17:05:45 [initandlisten] connection accepted from 172.26.92.3:55196 #8
Thu Sep 16 17:20:04 [initandlisten] connection accepted from 172.26.92.3:57020 #9
Thu Sep 16 17:20:04 [initandlisten] connection accepted from 172.26.92.3:57022 #10
Thu Sep 16 17:23:13 [initandlisten] connection accepted from 172.26.92.4:63741 #11
Thu Sep 16 17:23:13 [initandlisten] connection accepted from 172.26.92.4:63743 #12
Thu Sep 16 17:23:14 [initandlisten] connection accepted from 172.26.92.4:63761 #13
Thu Sep 16 17:23:14 [initandlisten] connection accepted from 172.26.92.4:63767 #14
Thu Sep 16 17:23:15 [initandlisten] connection accepted from 172.26.92.4:63779 #15
Thu Sep 16 17:23:25 [initandlisten] connection accepted from 172.26.92.4:63927 #16
Thu Sep 16 17:23:28 [initandlisten] connection accepted from 172.26.92.4:63985 #17
Thu Sep 16 17:23:34 [initandlisten] connection accepted from 172.26.92.4:64103 #18
Thu Sep 16 17:23:39 [initandlisten] connection accepted from 172.26.92.4:64206 #19
Thu Sep 16 17:23:43 [initandlisten] connection accepted from 172.26.92.3:57323 #20
Thu Sep 16 17:23:58 [initandlisten] connection accepted from 172.26.92.3:57393 #21
Thu Sep 16 17:32:37 [conn1] end connection 127.0.0.1:40730
Thu Sep 16 22:02:20 [initandlisten] connection accepted from 172.26.92.3:57797 #22

Comment by Eliot Horowitz (Inactive) [ 17/Sep/10 ]

Can you send entire mongod log?

Generated at Thu Feb 08 02:58:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.