Github user kfirlevari commented on a diff in the pull request:

    https://github.com/apache/zookeeper/pull/411#discussion_r148119207
  
    --- Diff: 
src/java/main/org/apache/zookeeper/server/quorum/CommitProcessor.java ---
    @@ -246,33 +246,51 @@ public void run() {
                         }
     
                         /*
    -                     * Check if request is pending, if so, update it with 
the
    -                     * committed info
    +                     * Check if request is pending, if so, update it with 
the committed info
                          */
                         LinkedList<Request> sessionQueue = pendingRequests
                                 .get(request.sessionId);
                         if (sessionQueue != null) {
                             // If session queue != null, then it is also not 
empty.
                             Request topPending = sessionQueue.poll();
                             if (request.cxid != topPending.cxid) {
    -                            LOG.error(
    -                                    "Got cxid 0x"
    -                                            + 
Long.toHexString(request.cxid)
    -                                            + " expected 0x" + 
Long.toHexString(
    -                                                    topPending.cxid)
    -                                    + " for client session id "
    -                                    + Long.toHexString(request.sessionId));
    -                            throw new IOException("Error: unexpected cxid 
for"
    -                                    + "client session");
    +                            // TL;DR - we should not encounter this 
scenario often under normal load.
    --- End diff --
    
    NP ;)


---

Reply via email to