TylerBrock / mongo-hacker

MongoDB Shell Enhancements for Hackers
tylerbrock.github.io/mongo-hacker
MIT License
1.79k stars 235 forks source link

MongoDB 3.6.2 sh.status missing function #184

Closed desterhuizen closed 5 years ago

desterhuizen commented 6 years ago

MongoDB 3.6.2 removes the function sh.getBalancerLockDetails.

Connecting to a sharded cluster when mongo-hacker is installed then causes the following exception when running sh.status()

[mongos] test> sh.status()
2018-02-07T12:48:57.040-0500 E QUERY    [thread1] TypeError: sh.getBalancerLockDetails is not a function :
sh.status@src/mongo/shell/utils_sh.js:89:5
@(shell):1:1
TylerBrock commented 6 years ago

Thanks for reporting this!

kagahd commented 6 years ago

See workaround here: https://github.com/TylerBrock/mongo-hacker/issues/197

stennie commented 5 years ago

Closing as a duplicate of #197