[SERVER-21747] CheckReplDBHash should not print error message when the system collections differ in the presence of other errors Created: 02/Dec/15  Updated: 21/Nov/16  Resolved: 07/Jan/16

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: 3.2.0-rc5
Fix Version/s: 3.2.3, 3.3.0

Type: Improvement Priority: Minor - P4
Reporter: Robert Guo (Inactive) Assignee: Jonathan Abrahams
Resolution: Done Votes: 0
Labels: test-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-22836 CheckReplDBHash hook should ignore DB... Closed
Related
Backwards Compatibility: Fully Compatible
Backport Completed:
Sprint: TIG E (01/08/16)
Participants:
Linked BF Score: 0

 Description   

If the database names on the primary and secondary don't match, CheckReplDBHash immediately appends the error message to an output buffer. However this is not an actual error when the only collection(s) in the db(s) are system collections.

CheckReplDBHash checks for system collection expclicitly and sets a flag "success" to true to prevent printing the errors. But when there is at least one other legitimate error, the flag is set to false and all the errors are printed.

A possible fix would be to have the error message for the database name checks stored in a separate buffer and only use it when the mismatch is not caused by a system collection.



 Comments   
Comment by Githook User [ 11/Jan/16 ]

Author:

{u'username': u'hptabster', u'name': u'Jonathan Abrahams', u'email': u'jonathan@mongodb.com'}

Message: SERVER-21747 CheckReplDBHash should not print error message when the system collections differ in the presence of other errors
Branch: v3.2
https://github.com/mongodb/mongo/commit/55714993ce4f8661092b0b80a14a68c179c9405e

Comment by Githook User [ 07/Jan/16 ]

Author:

{u'username': u'hptabster', u'name': u'Jonathan Abrahams', u'email': u'jonathan@mongodb.com'}

Message: SERVER-21747 CheckReplDBHash should not print error message when the system collections differ in the presence of other errors
Branch: master
https://github.com/mongodb/mongo/commit/299dfc420c1e1813408ea161758b0178ee24bd9d

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