[SERVER-9412] is there difference connect with mongos and single instance? Created: 20/Apr/13 Updated: 24/Apr/13 Resolved: 24/Apr/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Question | Priority: | Major - P3 |
| Reporter: | auto | Assignee: | Stennie Steneker (Inactive) |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | collector-298ba4e7 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Location: http://docs.mongodb.org/manual/reference/mongos/ |
||
| Participants: |
| Description |
|
I use mongo dervier's clojure wrapper to connect to mongos, (defn get-conn [] try to connect to mongos, but when query something: (with-mongo conn always has exception: java.lang.NullPointerException at com.mongodb.DBCursor._check(DBCursor.java:365) But if I use query like fetch-one, count, it works, Thanks! |
| Comments |
| Comment by Stennie Steneker (Inactive) [ 24/Apr/13 ] |
|
The SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion you should post on the mongodb-users group (http://groups.google.com/group/mongodb-user) or Stack Overflow. If your question is specific to a Clojure driver, there is probably a more focused discussion list for support depending on which driver you are using. As far as connecting via mongod or mongos goes, they are using the same MongoDB Wire Protocol and your queries should work with either unless there is a driver bug. |