Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Resend Accept on message resubmission

  • Loading branch information...
commit 7dcefe5a0fe76ead6231c8d0d2401b443dd33f67 1 parent 45fab48
Daniel Gómez Ferro authored
7 src/main/java/com/yahoo/pasc/paxos/handlers/proposer/ProposerRequest.java
View
@@ -75,11 +75,13 @@
descriptors = new ArrayList<PaxosDescriptor>(4);
AcceptorAccept.checkAccept(request.getIid(), state, descriptors);
} else {
- LOG.error("Got a resubmitted request or too new request. "
+ LOG.warn("Got a resubmitted request or too new request. "
+ "FirstDigestID: {} CurrentId: {} RequestId: {} FirstIid: {} MsgClient: {} MsgTS: {} CacheTS: {} ",
new Object[] { state.getFirstDigestId(), state.getCurrIid(), request.getIid(),
state.getFirstInstanceId(), clientId, timestamp, repTs });
- return null;
+
+ return state.getIsLeader() ? Arrays.<PaxosDescriptor> asList(new Accept.Descriptor(requestIid),
+ new Accepted.Descriptor(requestIid)) : null;
}
}
@@ -92,6 +94,7 @@
return null;
}
+ request.setIid(iid);
int bufSize = state.getInstanceBufferSize(iid);
state.setClientTimestampBufferElem(new IndexIid(bufSize, iid), ct);
bufSize++;
Please sign in to comment.
Something went wrong with that request. Please try again.