Return-Path: Delivered-To: apmail-hadoop-zookeeper-dev-archive@locus.apache.org Received: (qmail 5490 invoked from network); 8 Sep 2008 20:54:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Sep 2008 20:54:05 -0000 Received: (qmail 63276 invoked by uid 500); 8 Sep 2008 20:54:02 -0000 Delivered-To: apmail-hadoop-zookeeper-dev-archive@hadoop.apache.org Received: (qmail 63249 invoked by uid 500); 8 Sep 2008 20:54:02 -0000 Mailing-List: contact zookeeper-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: zookeeper-dev@hadoop.apache.org Delivered-To: mailing list zookeeper-dev@hadoop.apache.org Received: (qmail 63233 invoked by uid 99); 8 Sep 2008 20:54:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Sep 2008 13:54:02 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Sep 2008 20:53:13 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7A789234C1DE for ; Mon, 8 Sep 2008 13:53:44 -0700 (PDT) Message-ID: <1361230455.1220907224500.JavaMail.jira@brutus> Date: Mon, 8 Sep 2008 13:53:44 -0700 (PDT) From: "Flavio Paiva Junqueira (JIRA)" To: zookeeper-dev@hadoop.apache.org Subject: [jira] Commented: (ZOOKEEPER-118) findbugs flagged switch statement in followerrequestprocessor.run() In-Reply-To: <1534040471.1218478124847.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/ZOOKEEPER-118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12629285#action_12629285 ] Flavio Paiva Junqueira commented on ZOOKEEPER-118: -------------------------------------------------- This piece of code seems correct. Sync should be processed along with other quorum operations such as create, but it does require some special code. In this case case, a follower saves the pending sync operations it has received from its clients before forwarding it to the leader. > findbugs flagged switch statement in followerrequestprocessor.run() > ------------------------------------------------------------------- > > Key: ZOOKEEPER-118 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-118 > Project: Zookeeper > Issue Type: Bug > Components: server > Reporter: Patrick Hunt > Assignee: Flavio Paiva Junqueira > > followerrequestprocessor: > is the case statement for SYNC supposed to fall through? > switch (request.type) { > case OpCode.sync: > zks.pendingSyncs.add(request); > case OpCode.create: > Please update the docs/code appropriately (if correct note it with comment just after the sync case statement. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.