[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:
Related
related to SERVER-21410 Removed dead appliedBuffer code from ... Closed
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: SERVER-21368: fix repl network buffer stats accounting
Branch: master
https://github.com/mongodb/mongo/commit/7007d04fdbb3ee27f86c18e06f9d9ba906bb7e7c

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.

Generated at Thu Feb 08 03:57:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.