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 730A4200B2D for ; Thu, 16 Jun 2016 19:24:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 70546160A61; Thu, 16 Jun 2016 17:24:11 +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 B83A31602C5 for ; Thu, 16 Jun 2016 19:24:10 +0200 (CEST) Received: (qmail 77111 invoked by uid 500); 16 Jun 2016 17:24:09 -0000 Mailing-List: contact issues-help@geode.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.incubator.apache.org Delivered-To: mailing list issues@geode.incubator.apache.org Received: (qmail 77102 invoked by uid 99); 16 Jun 2016 17:24:09 -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; Thu, 16 Jun 2016 17:24:09 +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 83F14181250 for ; Thu, 16 Jun 2016 17:24:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.646 X-Spam-Level: X-Spam-Status: No, score=-4.646 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] 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 ddcTYtgjpeaS for ; Thu, 16 Jun 2016 17:24:08 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 582B560D39 for ; Thu, 16 Jun 2016 17:24:07 +0000 (UTC) Received: (qmail 75513 invoked by uid 99); 16 Jun 2016 17:24:06 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2016 17:24:06 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D42502C1F60 for ; Thu, 16 Jun 2016 17:24:05 +0000 (UTC) Date: Thu, 16 Jun 2016 17:24:05 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: issues@geode.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GEODE-1543) Not using the the correct log level when exceptions are thrown while creating indexes. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 16 Jun 2016 17:24:11 -0000 [ https://issues.apache.org/jira/browse/GEODE-1543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15334219#comment-15334219 ] ASF subversion and git services commented on GEODE-1543: -------------------------------------------------------- Commit 612a9d99566ac71421e5cd986c6ce6e391dedd30 in incubator-geode's branch refs/heads/feature/GEODE-835 from [~nnag] [ https://git-wip-us.apache.org/repos/asf?p=incubator-geode.git;h=612a9d9 ] GEODE-1543: Change the log level from error to info * When multiple peers join the cluster conncurrently, only the first one that joins will distribute the index creation and other will try to create the index locally because of the distributed message and then log an error afterwards. * This is an expected behaviour and hence should not be logged as error but rather as a info. This closes #156 > Not using the the correct log level when exceptions are thrown while creating indexes. > -------------------------------------------------------------------------------------- > > Key: GEODE-1543 > URL: https://issues.apache.org/jira/browse/GEODE-1543 > Project: Geode > Issue Type: Bug > Reporter: nabarun > > When two or more peers join the cluster concurrently, only the first one that joins will distribute the index creation while reading its cache.xml file, the rest will create the index locally due to the distributed message and log an error afterwards, while trying to create the index from its own cache.xml file. This error message is currently being registered under "ERROR" log level, and it should be registered under "WARNING", or even not be registered at all since this "exception" is expected during startup (we could easily cache the indexes created locally by other distributed members) > {noformat} > [fine 2016/05/12 09:37:01.744 BST host1-server2 tid=0x44] Index creation message got the pr Partitioned Region @57fd91c9 [path='/ClientSessionRegionPosSrv'; dataPolicy=PARTITION; gatewayEnabled=false; prId=1; isDestroyed=false; isClosed=false; retryTimeout=3600000; serialNumber=7; partition attributes=PartitionAttributes@1828508781[redundantCopies=1;localMaxMemory=5;totalMaxMemory=2147483647;totalNumBuckets=47;partitionResolver=null;colocatedWith=null;recoveryDelay=300000;startupRecoveryDelay=60000;FixedPartitionAttributes=null;partitionListeners=null]; on VM 10.69.252.112(host1-server2:21655):34609] > [fine 2016/05/12 09:37:01.744 BST host1-server2
tid=0x1] LocalRegion.createOQLIndexes on region /ClientSessionRegionPosSrv > [fine 2016/05/12 09:37:01.744 BST host1-server2 tid=0x44] Processing index creation message on this remote partitioned region vm for indexes: ClientSessionRegionPosSrv.byUser > [fine 2016/05/12 09:37:01.744 BST host1-server2 tid=0x44] Started creating index with Index Name :ClientSessionRegionPosSrv.byUser On PartitionedRegion /ClientSessionRegionPosSrv, Indexfrom caluse=/ClientSessionRegionPosSrv, Remote Request: true > [fine 2016/05/12 09:37:01.744 BST host1-server2
tid=0x1] QueryService Index creation process for {}ClientSessionRegionPosSrv.byUser > [fine 2016/05/12 09:37:01.750 BST host1-server2 tid=0x44] Completed creating index with Index Name :ClientSessionRegionPosSrv.byUser On PartitionedRegion /ClientSessionRegionPosSrv, Remote Request: true > [fine 2016/05/12 09:37:01.751 BST host1-server2 tid=0x44] Multi Index creation completed on remote host and has sent the reply to the originating vm. > [fine 2016/05/12 09:37:01.769 BST host1-server2
tid=0x1] Started creating index with Index Name :ClientSessionRegionPosSrv.byUser On PartitionedRegion /ClientSessionRegionPosSrv, Indexfrom caluse=/ClientSessionRegionPosSrv, Remote Request: false > [error 2016/05/12 09:37:01.770 BST host1-server2
tid=0x1] Failed to create index ClientSessionRegionPosSrv.byUser on region /ClientSessionRegionPosSrv with exception: com.gemstone.gemfire.cache.query.IndexNameConflictException: Index named ' ClientSessionRegionPosSrv.byUser ' already exists. > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)