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 4A5A3200C80 for ; Wed, 10 May 2017 14:48:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 478BA160BA8; Wed, 10 May 2017 12:48:09 +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 8C388160BB4 for ; Wed, 10 May 2017 14:48:08 +0200 (CEST) Received: (qmail 6856 invoked by uid 500); 10 May 2017 12:48:07 -0000 Mailing-List: contact dev-help@geode.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.apache.org Delivered-To: mailing list dev@geode.apache.org Received: (qmail 6840 invoked by uid 99); 10 May 2017 12:48:07 -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; Wed, 10 May 2017 12:48:07 +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 2D4F8181323 for ; Wed, 10 May 2017 12:48:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.201 X-Spam-Level: X-Spam-Status: No, score=-99.201 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id OLeWueP2Vvez for ; Wed, 10 May 2017 12:48:05 +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 28F265FCFA for ; Wed, 10 May 2017 12:48:05 +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 6AA2BE0940 for ; Wed, 10 May 2017 12:48:04 +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 262F121E0A for ; Wed, 10 May 2017 12:48:04 +0000 (UTC) Date: Wed, 10 May 2017 12:48:04 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@geode.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GEODE-2890) Incorrect debug log location in AbstractGatewaySenderEventProcessor.processQueue() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 10 May 2017 12:48:09 -0000 [ https://issues.apache.org/jira/browse/GEODE-2890?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16004628#comment-16004628 ] ASF GitHub Bot commented on GEODE-2890: --------------------------------------- GitHub user ameybarve15 opened a pull request: https://github.com/apache/geode/pull/505 [GEODE-2890]: Corrected debug log location in AbstractGatewaySenderEventProcessor.processQueue(). Corrected debug log location in AbstractGatewaySenderEventProcessor.processQueue(). You can merge this pull request into a Git repository by running: $ git pull https://github.com/ameybarve15/incubator-geode feature/GEODE-2890 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/geode/pull/505.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #505 ---- commit a787737f9ad6656e7da382b35c49ecf622900bf0 Author: Amey Barve Date: 2017-05-10T09:17:30Z GEODE-2890: Corrected debug log location in AbstractGatewaySenderEventProcessor.processQueue(). ---- > Incorrect debug log location in AbstractGatewaySenderEventProcessor.processQueue() > ----------------------------------------------------------------------------------- > > Key: GEODE-2890 > URL: https://issues.apache.org/jira/browse/GEODE-2890 > Project: Geode > Issue Type: Bug > Components: wan > Reporter: Jason Huynh > Assignee: Amey Barve > > The following code snippet in processQueue() for AEQ's appears to be outside of an if condition where we check to see if the node is primary still or not. This line prints for every event and I believe it should be inside the previous if condition. > {noformat} > if (qpr != null) { > BucketRegion bucket = qpr.getDataStore().getLocalBucketById(bucketId); > if (bucket == null || !bucket.getBucketAdvisor().isPrimary()) { > event.setPossibleDuplicate(true); > //I think the debug log should be placed here? > } > } > if (isDebugEnabled) { > logger.debug( "Bucket id: {} is no longer primary on this node. The event {} will be dispatched from this node with possibleDuplicate set to true.", bucketId, event); > } > {noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346)