[SERVER-3189] repl/dbcase failure due to listdatabases consistency exception Created: 03/Jun/11  Updated: 12/Jul/16  Resolved: 19/Jul/11

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 1.9.1

Type: Bug Priority: Major - P3
Reporter: Aaron Staple Assignee: Aaron Staple
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

<http://buildbot.mongodb.org/builders/OS%20X%2010.5%2064-bit%20DUR%20ON/builds/218/steps/test_6/logs/stdio>

m31001| Fri Jun 3 01:41:12 [replslave] An earlier initial clone of 'dbNAme' did not complete, now resyncing.
m31001| Fri Jun 3 01:41:12 [replslave] resync: dropping database dbNAme
Fri Jun 3 01:41:12 uncaught exception: listDatabases failed:{
"assertion" : "db already exists with different case other: [dbNAme] me [dbname]",
"assertionCode" : 13297,
"errmsg" : "db assertion failure",
"ok" : 0
}

The listDatabases command attempts to switch to each available database it is aware of. But its list of databases may be out of date, causing it to attempt to switch to a database having a name conflict with an existing database and triggering an assertion.

We can either change listDatabases so it can't assert in this case or fix the test to work around this issue.



 Comments   
Comment by auto [ 12/Jul/11 ]

Author:

{u'login': u'astaple', u'name': u'Aaron', u'email': u'aaron@10gen.com'}

Message: SERVER-3189 add workaround for listDatabases exception triggered indirectly by test
Branch: master
https://github.com/mongodb/mongo/commit/f5a56c1cccdc8390d3aa7070302a743468b927e6

Comment by auto [ 12/Jul/11 ]

Author:

{u'login': u'astaple', u'name': u'Aaron', u'email': u'aaron@10gen.com'}

Message: Revert "SERVER-3189 fix listDatabases race condition that was causing dbcase test to fail"

This reverts commit c85b48ce58215eb40f192f61118d3012073a917e.
Branch: master
https://github.com/mongodb/mongo/commit/62060e62f7f909cb9c4863c9d97c18e3e2bf17c5

Comment by auto [ 12/Jul/11 ]

Author:

{u'login': u'astaple', u'name': u'Aaron', u'email': u'aaron@10gen.com'}

Message: SERVER-3189 fix listDatabases race condition that was causing dbcase test to fail
Branch: master
https://github.com/mongodb/mongo/commit/c85b48ce58215eb40f192f61118d3012073a917e

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