Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report Can't delete collection with specific name #4198

Open
yjn140 opened this issue Mar 27, 2023 · 3 comments
Open

Bug Report Can't delete collection with specific name #4198

yjn140 opened this issue Mar 27, 2023 · 3 comments

Comments

@yjn140
Copy link

yjn140 commented Mar 27, 2023

I found that mongodb compass can't delete collection with specific name.

I created a collection called cmccjx_phone_realname_identityno_.._2010

I think it is the problem of this..

When I want to delete it in the graphical interface, he prompts that the collection is empty

Other manifestations are that in the UI interface, clicking or double-clicking the collection does not respond. command line execution error

$ db.cmccjx_phone_realname_identityno_.._2010.drop
Error: clone(t={}){const r=t.loc||{};return e({loc:new Position("line"in r?r.line:this.loc.line,"column"in r?r.column:...<omitted>...)} could not be cloned.
    at Object.serialize (node:v8:332:7)
    at u (/Applications/MongoDB Compass.app/Contents/Resources/app.asar.unpacked/node_modules/@mongosh/node-runtime-worker-thread/dist/worker-runtime.js:2:1160)
    at postMessage (/Applications/MongoDB Compass.app/Contents/Resources/app.asar.unpacked/node_modules/@mongosh/node-runtime-worker-thread/dist/worker-runtime.js:2:1768)
    at i (/Applications/MongoDB Compass.app/Contents/Resources/app.asar.unpacked/node_modules/@mongosh/node-runtime-worker-thread/dist/worker-runtime.js:1917:2531156)

I execute this command to manually delete

$ db["cmccjx_phone_realname_identityno_.._2010"].drop()
@alenakhineika
Copy link
Contributor

Hey, thank you for reporting the issue. Here is the ticket you can use to track the progress on this: COMPASS-6806

@soyjuanmacias
Copy link

Could it be because I have put a dot in the collection name? not good practice

@alenakhineika
Copy link
Contributor

This is actually two successive dots that cause that. For collection names, this is ok to have a dot in their names. We will investigate what fails for the two of them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants