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 E368F200C15 for ; Wed, 8 Feb 2017 21:07:54 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E2157160B5A; Wed, 8 Feb 2017 20:07:54 +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 343EB160B49 for ; Wed, 8 Feb 2017 21:07:54 +0100 (CET) Received: (qmail 38003 invoked by uid 500); 8 Feb 2017 20:07:53 -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 37992 invoked by uid 99); 8 Feb 2017 20:07:53 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Feb 2017 20:07:53 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id DE896C0571 for ; Wed, 8 Feb 2017 20:07:52 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-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-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id VKsMGlGGekz8 for ; Wed, 8 Feb 2017 20:07:51 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 3D3F75F24B for ; Wed, 8 Feb 2017 20:07:51 +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 ECBCFE031F for ; Wed, 8 Feb 2017 20:07:41 +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 A3A542528C for ; Wed, 8 Feb 2017 20:07:41 +0000 (UTC) Date: Wed, 8 Feb 2017 20:07:41 +0000 (UTC) From: "Ryan Zhang (JIRA)" To: dev@zookeeper.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (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: Wed, 08 Feb 2017 20:07:55 -0000 [ https://issues.apache.org/jira/browse/ZOOKEEPER-2684?page=3Dcom.atlas= sian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D= 15858474#comment-15858474 ]=20 Ryan Zhang edited comment on ZOOKEEPER-2684 at 2/8/17 8:07 PM: --------------------------------------------------------------- Hi, Kfir, when I mean a quorum based test I mean a test class that extends = QuorumBase. as for your patch, the biggest question for me is that how does it check th= at the commit is not duplicated? The request could have been processed in t= he queue before. On a high level, I am not sure what piece of code ensures = that won't happen (I assume in the lead code but I don't know on top of my = head). My approach is to remember the first CXid ever appeared but it's kin= da messy. If you can point me to that code guarantee no duplication and no = reorder then I think I would be happy to not be so strict here in the commi= tProcessor was (Author: nerdyyatrice): Hi, Kfir, when I mean a quorum based test I mean a test class that extends = QuorumBase. as for your patch, the biggest question for me is that how does it check th= at the commit is not duplicated? The request could have been processed in t= he queue before. On a high level, I am not sure what piece of code ensures = that won't happen (I assume in the lead code but I don't know on top of my = head). My approach is to remember the first CXid ever appeared but it's kin= da messy. If you can point me to that code then I think I would be happy to= not be so strict here in the commitProcessor > 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 > Attachments: ZOOKEEPER-2684.patch > > > 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)