Todd Lipcon has submitted this change and it was merged.
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
Reviewed-on: http://gerrit.cloudera.org:8080/4580
Tested-by: Kudu Jenkins
Reviewed-by: David Ribeiro Alves <[email protected]>
---
M src/kudu/consensus/raft_consensus_state.cc
1 file changed, 4 insertions(+), 9 deletions(-)
Approvals:
David Ribeiro Alves: Looks good to me, approved
Kudu Jenkins: Verified
--
To view, visit http://gerrit.cloudera.org:8080/4580
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: If1f3db96ece79e81b42bce4db51d37f14df14f50
Gerrit-PatchSet: 2
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: Dan Burkert <[email protected]>
Gerrit-Reviewer: Dan Burkert <[email protected]>
Gerrit-Reviewer: David Ribeiro Alves <[email protected]>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Todd Lipcon <[email protected]>