Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Crash when deleting indexes in a certain order #280

@hanks42

Description

@hanks42

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! admin-mongo@0.0.23 start: `node app.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the admin-mongo@0.0.23 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions