[SERVER-21368] Size of repl buffer is negative? Created: 09/Nov/15 Updated: 17/Nov/15 Resolved: 12/Nov/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | 3.2.0-rc3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Martin Bligh | Assignee: | Scott Hernandez (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Steps To Reproduce: | Start a repl set. |
||||||||
| Sprint: | Repl C (11/20/15) | ||||||||
| Participants: | |||||||||
| Description |
|
This is the primary, so a bit odd, but they shouldn't be negative. mjbtest:PRIMARY> db.serverStatus().metrics.repl.buffer { "count" : NumberLong(-1), "maxSizeBytes" : 268435456, "sizeBytes" : NumberLong(-5) } |
| Comments |
| Comment by Githook User [ 11/Nov/15 ] |
|
Author: {u'username': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}Message: |
| Comment by Scott Hernandez (Inactive) [ 11/Nov/15 ] |
|
This is due to the new sentinel bson document added during draining to indicate drain complete, and will show up on the primary almost every time, I believe. |
| Comment by Martin Bligh [ 09/Nov/15 ] |
|
Agreed, it doesn't repro on rc2, but it does on master (ed6c7908a51b92311efad30df78a390fa96e990f) |
| Comment by Ramon Fernandez Marina [ 09/Nov/15 ] |
|
Doesn't reproduce trivially on 3.2.0-rc2, may need code inspection. Trying master now. |