[SERVER-16948] printSlaveReplicationInfo() appears broken in master Created: 20/Jan/15  Updated: 23/Jan/15  Resolved: 20/Jan/15

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.0.0-rc6

Type: Bug Priority: Major - P3
Reporter: Ramon Fernandez Marina Assignee: Matt Dannenberg
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

$ mongo
MongoDB shell version: 2.8.0-rc6-pre-
connecting to: test
Server has startup warnings:
2015-01-20T13:29:54.274-0500 I CONTROL  [initandlisten]
 
replset:PRIMARY> db.foo.insert({x:1})
WriteResult({ "nInserted" : 1 })
 
replset:PRIMARY> rs.printSlaveReplicationInfo()
source: tab:27018
        syncedTo: Tue Jan 20 2015 13:30:25 GMT-0500 (EST)
        -3630749425 secs (-1008541.51 hrs) behind the freshest member (no primary available at the moment)
source: tab:27019
        syncedTo: Tue Jan 20 2015 13:30:25 GMT-0500 (EST)
        -3630749425 secs (-1008541.51 hrs) behind the freshest member (no primary available at the moment)
 
replset:PRIMARY> db.serverBuildInfo()
{
        "version" : "2.8.0-rc6-pre-",
        "gitVersion" : "2b5bfa7e3799c9b4dffb38856b5d5f893a500731",
        "OpenSSLVersion" : "",
        "sysInfo" : "Linux tab 3.13.0-36-generic #63-Ubuntu SMP Wed Sep 3 21:30:07 UTC 2014 x86_64 BOOST_LIB_VERSION=1_49",
        "loaderFlags" : "-fPIC -pthread -Wl,-z,now -rdynamic",
        "compilerFlags" : "-Wnon-virtual-dtor -Woverloaded-virtual -std=c++11 -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -pipe -Werror -O3 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fno-builtin-memcmp -std=c99",
        "allocator" : "tcmalloc",
        "versionArray" : [
                2,
                8,
                0,
                -4
        ],
        "javascriptEngine" : "V8",
        "bits" : 64,
        "debug" : false,
        "maxBsonObjectSize" : 16777216,
        "ok" : 1
}
replset:PRIMARY> 



 Comments   
Comment by Githook User [ 20/Jan/15 ]

Author:

{u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}

Message: SERVER-16948 fix printSlaveReplicationInfo()'s detection of primary
Branch: master
https://github.com/mongodb/mongo/commit/a334152814ef3b5015a256468c52d5cc5b25e29f

Comment by Ramon Fernandez Marina [ 20/Jan/15 ]

mattd@10gen.com and I tracked this down, he's working on a CR and should be ready for RC6.

Comment by Ramon Fernandez Marina [ 20/Jan/15 ]

Reverting https://github.com/mongodb/mongo/commit/57806db0234321b9b88a74e013d952104e0c459a from SERVER-16793 restores proper behavior.

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