Hello David Ribeiro Alves, Todd Lipcon,

I'd like you to do a code review.  Please visit

    http://gerrit.cloudera.org:8080/4580

to review the following change.

Change subject: Remove newlines from raft_consensus.cc state logging
......................................................................

Remove newlines from raft_consensus.cc state logging

Removes an explicit newline from ReplicaState::ToStringUnlocked, which
was causing split log lines in raft_consensus.cc.

Before:

    I0930 15:01:06.197114 292159488 raft_consensus.cc:505] T 
00000000000000000000000000000000 P a65e9f463a254ae1a7e34a1a8e4cc7cc [term 0 
FOLLOWER]: Becoming Follower/Learner. State: Replica: 
a65e9f463a254ae1a7e34a1a8e4cc7cc, State: 1, Role: FOLLOWER
    Watermarks: {Received: term: 0 index: 0 Committed: term: 0 index: 0}

After:

    I0930 14:51:09.334908 360529920 raft_consensus.cc:505] T 
00000000000000000000000000000000 P d2878bd460384b8ab58dd3aaf2c8f52d [term 0 
FOLLOWER]: Becoming Follower/Learner. State: Replica: 
d2878bd460384b8ab58dd3aaf2c8f52d, State: 1, Role: FOLLOWER, Watermarks: 
{Received: term: 0 index: 0, Committed: term: 0 index: 0}

Change-Id: If1f3db96ece79e81b42bce4db51d37f14df14f50
---
M src/kudu/consensus/raft_consensus_state.cc
1 file changed, 4 insertions(+), 9 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/80/4580/1
-- 
To view, visit http://gerrit.cloudera.org:8080/4580
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If1f3db96ece79e81b42bce4db51d37f14df14f50
Gerrit-PatchSet: 1
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: Dan Burkert <d...@cloudera.com>
Gerrit-Reviewer: David Ribeiro Alves <dral...@apache.org>
Gerrit-Reviewer: Todd Lipcon <t...@apache.org>

Reply via email to