compass
compass copied to clipboard
Bug Report: explain plan failed on sharded cluster
Explain plan does not longer work after upgrading to Compass 1.26.0
Bug Report
Current Behavior
In Compass version 1.26.0 when explain button is clicked in Explain plan section then nothing happens and screen does not update.
Code/Gist
Expected Behavior/Code
The expected behavior is to evaluate plan as it was before in version 1.25.0
Environment
- node.js / npm versions: v12.16.3 / npm 7.8.0
- OS: OSX 10.15.7
Possible Solution
Revert to previous version 1.25.0 where explain plan functionality does work as expected.
Additional Context/Screenshots
Same issue when using $or operator.
Hi @artjomkruglenkov - thanks for reporting. I haven't been able to reproduce this yet, here's couple questions to hopefully help us identify what's happening:
- Does this happen with every query?
- How many documents are in the collection?
- Does it work on a collection with a smaller amount of documents?
- Is this a sharded cluster?
Hi @Anemy.
- Does this happen with every query?
Yes, at least with the ones I have tried.
- How many documents are in the collection.
Around 2.3mil
- Does it work on a collection with a smaller amount of documents?
- Is this a sharded cluster?
Yes, it's a sharded cluster. In fact, after your question I have tried running the same queries with non-sharded mongo setup and much fewer entries. In these cases explain plan works as expected.
Thanks for the response @artjomkruglenkov! I'd have another question that would be interesting: which MongoDB server versions did you connect to? Was the test with the non-sharded setup the same version as the sharded cluster?
Thanks for your help!
@rose-m The mongodb version is the same for both deployments: 4.2.12.
I can confirm the same issue on the MacOS version (unsure about windows and linux). Our database is as well mongo db community version 4.2.12. I have tried with mongodb compass 1.26.0 and 1.26.1 and explain shows no results, as if the query were not executed somehow. I needed to downgrade to compass 1.25.0, and explain works fine again.
Hey, could you please try this again with the latest Compass? We have a new explain plan experience now, to check if the issue has gone away.
Hi @artjomkruglenkov and @silver-mx! Wanted to check in on how the new explain plan experience is working out for you. Have the recent releases addressed the issue you were facing earlier? Your feedback is invaluable, and we appreciate your insights. 🚀🌟
Hi @himanshusinghs. For me, explain plan functionality works as expected in Compass 1.42.0
Sounds good, going to close this then, thanks!