Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-16375

Replication log message about vetoing can be truncated.

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.8.0-rc2
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • ALL

      Because BSONElement::toString() on a String-type element have a limit of 160 unless you explicitly tell it not to:

              case mongo::String:
                  s << '"';
                  if ( !full &&  valuestrsize() > 160 ) {
                      s.write(valuestr(), 150);
                      s << "...\"";
                  }
      

      You can end up with log messages like this:

       m31000| 2014-12-01T21:09:54.978+0000 I REPL     [ReplicationExecutor] not electing self, WIN-LPG54MQP00S:31004 would veto with 'errmsg: "I don't think WIN-LPG54MQP00S:31006 is electable because the member is not currently a secondary; member is more than 10 seconds behind the most up-to..."'
      

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: