Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 428E4200C23 for ; Tue, 7 Feb 2017 20:26:49 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4177A160B68; Tue, 7 Feb 2017 19:26:49 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 90CDA160B69 for ; Tue, 7 Feb 2017 20:26:48 +0100 (CET) Received: (qmail 66229 invoked by uid 500); 7 Feb 2017 19:26:47 -0000 Mailing-List: contact dev-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list dev@zookeeper.apache.org Received: (qmail 66173 invoked by uid 99); 7 Feb 2017 19:26:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2017 19:26:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 154B7189FB6 for ; Tue, 7 Feb 2017 19:26:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id YNFDzNi5uTWG for ; Tue, 7 Feb 2017 19:26:46 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id EB34760DB6 for ; Tue, 7 Feb 2017 19:26:45 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 504D6E060F for ; Tue, 7 Feb 2017 19:26:44 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id C5C032529B for ; Tue, 7 Feb 2017 19:26:42 +0000 (UTC) Date: Tue, 7 Feb 2017 19:26:42 +0000 (UTC) From: "Kfir Lev-Ari (JIRA)" To: dev@zookeeper.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ZOOKEEPER-2684) Fix a crashing bug in the mixed workloads commit processor MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 07 Feb 2017 19:26:49 -0000 [ https://issues.apache.org/jira/browse/ZOOKEEPER-2684?page=3Dcom.atlas= sian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D= 15856615#comment-15856615 ]=20 Kfir Lev-Ari commented on ZOOKEEPER-2684: ----------------------------------------- Hi Ryan, is it possible that the reason you see this type of bad behavior i= s because it wasn't examined before in the commit processor? i.e., it's a n= ew error message that we added in order to notify that commit messages don'= t follow their client order.=20 I wonder, can you to add to an un-patched version the same error message? (= and see if you get that error)=20 e.g., before [this|https://github.com/apache/zookeeper/commit/9fc632c4f0a34= 0b0a00ec6dff39c7b454c802822?diff=3Dsplit#diff-5cc688a027068714af01b0ad4d292= fe5L223] point, add something like =20 if (pending !=3D null && pending.sessionId =3D=3D request.sessionId && pend= ing.cxid > request.cxid)=20 LOG.error("Got cxid 0x " + Long.toHexString(request.cxid) + " expected 0x"= + Long.toHexString(pending.cxid) + " for client session id " + Long.toHexS= tring(request.sessionId)); throw new IOException("Error: unexpected cxid for" + "client session"); > Fix a crashing bug in the mixed workloads commit processor > ---------------------------------------------------------- > > Key: ZOOKEEPER-2684 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2684 > Project: ZooKeeper > Issue Type: Bug > Components: server > Affects Versions: 3.6.0 > Environment: with pretty heavy load on a real cluster > Reporter: Ryan Zhang > Assignee: Ryan Zhang > Priority: Blocker > > We deployed our build with ZOOKEEPER-2024 and it quickly started to crash= with the following error > atla-buh-05-sr1.prod.twttr.net: 2017-01-18 22:24:42,305 - ERROR [CommitPr= ocessor:2] -org.apache.zookeeper.server.quorum.CommitProcessor.run(CommitPr= ocessor.java:268) =E2=80=93 Got cxid 0x119fa expected 0x11fc5 for client se= ssion id 1009079ba470055 > atla-buh-05-sr1.prod.twttr.net: 2017-01-18 22:32:04,746 - ERROR [CommitPr= ocessor:2] -org.apache.zookeeper.server.quorum.CommitProcessor.run(CommitPr= ocessor.java:268) =E2=80=93 Got cxid 0x698 expected 0x928 for client sessio= n id 4002eeb3fd0009d > atla-buh-05-sr1.prod.twttr.net: 2017-01-18 22:34:46,648 - ERROR [CommitPr= ocessor:2] -org.apache.zookeeper.server.quorum.CommitProcessor.run(CommitPr= ocessor.java:268) =E2=80=93 Got cxid 0x8904 expected 0x8f34 for client sess= ion id 51b8905c90251 > atla-buh-05-sr1.prod.twttr.net: 2017-01-18 22:43:46,834 - ERROR [CommitPr= ocessor:2] -org.apache.zookeeper.server.quorum.CommitProcessor.run(CommitPr= ocessor.java:268) =E2=80=93 Got cxid 0x3a8d expected 0x3ebc for client sess= ion id 2051af11af900cc > clearly something is not right in the new commit processor per session qu= eue implementation. -- This message was sent by Atlassian JIRA (v6.3.15#6346)