Open takiri opened 8 years ago
On Windows 7 x64 and Windows Server 2008 R2 there is an issue related to data file allocation ( https://jira.mongodb.org/browse/SERVER-8480).
The problem (https://jira.mongodb.org/browse/SERVER-23810) is that the mongo shell display the following warning even if the quiet switch is used:
2016-04-19T15:13:29.709-0400 I CONTROL [main] Hotfix KB2731284 or later update is not installed, will zero-out data files
Because of the presence of this warning line mongoev fails to parse the mongo shell ouput (JSON string expected).
This problem has been discussed on the google group (https://groups.google.com/forum/?fromgroups#!topic/mongodb-user/J55PzWLyvyU) and the workaround seems to consist in filtering out this warning. It could be achieved using shell specific commands:
mongo <host>:<port>/admin -u <user> -p <pass> --quiet --eval "db.system.users.find({user:'myadmin'}).count()" 2>&1 | findstr /v "CONTROL"
mongo <host>:<port>/admin -u <user> -p <pass> --quiet --eval "db.system.users.find({user:'myadmin'}).count()" 2>&1 | grep -v "CONTROL"
Alternatively I think it could be also easily filtered using a Scala regex.
Note that after microsoft patch installation another warning is still displayed
2016-08-11T11:35:13.273+0200 I CONTROL [main] Hotfix KB2731284 or later update is installed, no need to zero-out
On Windows 7 x64 and Windows Server 2008 R2 there is an issue related to data file allocation ( https://jira.mongodb.org/browse/SERVER-8480).
The problem (https://jira.mongodb.org/browse/SERVER-23810) is that the mongo shell display the following warning even if the quiet switch is used:
Because of the presence of this warning line mongoev fails to parse the mongo shell ouput (JSON string expected).
This problem has been discussed on the google group (https://groups.google.com/forum/?fromgroups#!topic/mongodb-user/J55PzWLyvyU) and the workaround seems to consist in filtering out this warning. It could be achieved using shell specific commands:
Alternatively I think it could be also easily filtered using a Scala regex.