Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public void fail(Throwable e) {

@Override
public String toString() {
return "[cid=" + callId + ", seq=" + getSeqNum() + "]";
return "[cid=" + callId + ", seq=" + getSeqNum() + (isFirst? "(1st)": "") + "]";
}
}

Expand Down Expand Up @@ -201,7 +201,8 @@ private void sendRequestWithRetry(PendingOrderedRequest pending) {
}

if (getSlidingWindow(request).isFirst(pending.getSeqNum())) {
pending.setFirstRequest();
Preconditions.assertTrue(request.getSlidingWindowEntry().getIsFirst(),
() -> "The first request is not marked as first: " + request);
}
LOG.debug("{}: send* {}", client.getId(), request);
client.getClientRpc().sendRequestAsync(request).thenAccept(reply -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ static String toString(SlidingWindowEntry proto) {
if (proto == null) {
return null;
}
return proto.getSeqNum() + (proto.getIsFirst()? "*": "");
return proto.getSeqNum() + (proto.getIsFirst()? "(1st)": "");
}

static String toString(RaftRpcRequestProto proto) {
Expand Down
Loading