[SERVER-10366] Error code 13135 running rs.reconfig() Created: 29/Jul/13 Updated: 09/Jul/16 Resolved: 29/Jul/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 2.4.5 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Nic Cottrell (Personal) | Assignee: | Scott Hernandez (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
rhel6 |
||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||||||||||||||||||||||||
| Steps To Reproduce: | On the primary, I do use admin; set conf to:
get the error:
I looked up the error code at https://github.com/mongodb/mongo/blob/master/docs/errors.md but was blank. |
||||||||||||||||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
Error code 13135 when adding tags to a RS config |
| Comments |
| Comment by Nic Cottrell (Personal) [ 29/Jul/13 ] |
|
I fixed it by setting "mem" as a string. I suspect I just got confused by examples at http://docs.mongodb.org/manual/tutorial/configure-replica-set-tag-sets/ which set "rack" as an int. |
| Comment by Scott Hernandez (Inactive) [ 29/Jul/13 ] |
|
All tags must be strings. The error message indicates that you passed in a double not a string ("type for field (mem) 1 != 2"). Type 1 is double, and type 2 string (bsonspec.org/#/specification). The docs aren't clear in this respect and will be updated. |