[SERVER-7800] Fix "db.printSlaveReplicationInfo()" command in mongo shell, for replica sets. Created: 29/Nov/12  Updated: 26/Oct/15  Resolved: 19/Jun/13

Status: Closed
Project: Core Server
Component/s: JavaScript, Replication
Affects Version/s: 2.3.1
Fix Version/s: 2.5.1

Type: Bug Priority: Major - P3
Reporter: Azat Khuzhin Assignee: Matt Dannenberg
Resolution: Done Votes: 0
Labels: pull-request
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DOCS-1876 Update entry for printSlaveReplicatio... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

It is wrong to compare current slave optime with time at this moment,
because some databases don't changes during some period of time.

Value which we must use to compare with current slave optime is -
master optime.



 Comments   
Comment by auto [ 19/Jun/13 ]

Author:

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

Message: SERVER-7800 Fix "db.printSlaveReplicationInfo()" command in mongo shell, for replica sets. cont

changed message to a less confusing
also more pretty (no more tabs + one space)
Branch: master
https://github.com/mongodb/mongo/commit/8706a021d8edcd747623bb2b2605995e2c57b76d

Comment by auto [ 19/Jun/13 ]

Author:

{u'username': u'azat', u'name': u'Azat Khuzhin', u'email': u'a3at.mail@gmail.com'}

Message: SERVER-7800 Fix "db.printSlaveReplicationInfo()" command in mongo shell, for replica sets.

It is wrong to compare current slave optime with time at this moment,
because some databases don't changes during some period of time.

Value which we must use to compare with current slave optime is -
master optime.

Signed-off-by: Azat Khuzhin <a3at.mail@gmail.com>
Signed-off-by: matt dannenberg <matt.dannenberg@10gen.com>
Branch: master
https://github.com/mongodb/mongo/commit/40708e54a41f833933d748383d563cf7c9092744

Comment by Azat Khuzhin [ 11/Mar/13 ]

Hi Eric, thanks.
I will keep in mind.

Comment by Eric Milkie [ 11/Mar/13 ]

Hi Azat.
Thanks for the patch. At first glance it looks correct and I'll be merging it in for the 2.5 release.

Comment by Azat Khuzhin [ 10/Mar/13 ]

Any news?

Comment by Azat Khuzhin [ 29/Nov/12 ]

Pull request https://github.com/mongodb/mongo/pull/332/files

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