Mike Percy has posted comments on this change.

Change subject: Send back an error when UpdateConsensus cannot prepare a single 
transaction
......................................................................


Patch Set 2:

(2 comments)

http://gerrit.cloudera.org:8080/#/c/1785/2/src/kudu/consensus/raft_consensus.cc
File src/kudu/consensus/raft_consensus.cc:

Line 1132:       if (deduped_req.messages.empty()) {
> I'm a little confused about this logic. Couldn't the leader have happened t
I think this should be:

      // We made no progress.
      if (iter == deduped_req.messages.begin()) {


http://gerrit.cloudera.org:8080/#/c/1785/2/src/kudu/integration-tests/raft_consensus-itest.cc
File src/kudu/integration-tests/raft_consensus-itest.cc:

Line 2468:   ASSERT_TRUE(resp.status().has_error());
> Missing an assertion for the new error code
add:

  ASSERT_EQ(consensus::ConsensusErrorPB::CANNOT_PREPARE, 
resp.status().error().code());


-- 
To view, visit http://gerrit.cloudera.org:8080/1785
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I546fd3069af974383c23acb7406ea621e6962bb3
Gerrit-PatchSet: 2
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: Jean-Daniel Cryans
Gerrit-Reviewer: David Ribeiro Alves <[email protected]>
Gerrit-Reviewer: Jean-Daniel Cryans
Gerrit-Reviewer: Mike Percy <[email protected]>
Gerrit-Reviewer: Todd Lipcon <[email protected]>
Gerrit-HasComments: Yes

Reply via email to