Operational Defect Database

BugZero found this defect 18 days ago.

MongoDB | 2659645

Rename collection errors due to "target namespace exists" after namespace was dropped in jstest

Last update date:

5/1/2024

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

No fixed releases provided.

Description:

Info

As part of SEVER-84330, transactions_block_ddl.js was unblocked in sharded environments. In certain test suites (eg replica_sets_initsync_jscore_passthrough) the two rename commands here and here will fail with Error: command failed: { "ok" : 0, "errmsg" : "target namespace exists", "code" : 48, "codeName" : "NamespaceExists", ... } unless they set 'dropTarget: true' even though the collection is dropped before running the test and the previous call to 'testTimeout' shouldn't create it. We should investigate why this happens and make sure the collection is actually dropped, then remove the dropTarget: true from the two renames if possible. To reproduce, remove the 'dropTarget: true', and run the test with the suite mentioned above.

Top User Comments


Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Backlog

Learn More

Search:

...