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

Crash when deleting indexes in a certain order #280

Open
hanks42 opened this issue Nov 9, 2020 · 0 comments
Open

Crash when deleting indexes in a certain order #280

hanks42 opened this issue Nov 9, 2020 · 0 comments

Comments

@hanks42
Copy link

hanks42 commented Nov 9, 2020

When I have multiple indexes in order (1, 2, 3) if I use the UI to delete them and delete number 2 then number 3 the app will crash. It will not if I delete number 3 first then 2.

Here for example delete category_name_1 first then try to delete category_name_text

image

Error message

POST /collection/Komodo%20local/db/error_category_rule/drop_index 200 15.685 ms - 36
/home/jonh/adminmongo/node_modules/mongodb/lib/utils.js:123
    process.nextTick(function() { throw err; });
                                  ^

TypeError: Cannot read property 'name' of undefined
    at /home/jonh/adminmongo/routes/collection.js:185:80
    at handleCallback (/home/jonh/adminmongo/node_modules/mongodb/lib/utils.js:120:56)
    at /home/jonh/adminmongo/node_modules/mongodb/lib/db.js:1585:21
    at handleCallback (/home/jonh/adminmongo/node_modules/mongodb/lib/utils.js:120:56)
    at /home/jonh/adminmongo/node_modules/mongodb/lib/cursor.js:861:16
    at handleCallback (/home/jonh/adminmongo/node_modules/mongodb-core/lib/cursor.js:171:5)
    at setCursorDeadAndNotified (/home/jonh/adminmongo/node_modules/mongodb-core/lib/cursor.js:505:3)
    at nextFunction (/home/jonh/adminmongo/node_modules/mongodb-core/lib/cursor.js:660:7)
    at CommandCursor.Cursor.next [as _next] (/home/jonh/adminmongo/node_modules/mongodb-core/lib/cursor.js:701:3)
    at fetchDocs (/home/jonh/adminmongo/node_modules/mongodb/lib/cursor.js:857:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node app.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/jonh/.npm/_logs/2020-11-09T20_14_44_752Z-debug.log

npm failed, show the debug log of the indeed npm wrapper:
command executed: npm start
command npm  start
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

1 participant