[ 
https://issues.apache.org/jira/browse/GEODE-1543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15330680#comment-15330680
 ] 

ASF GitHub Bot commented on GEODE-1543:
---------------------------------------

GitHub user nabarunnag opened a pull request:

    https://github.com/apache/incubator-geode/pull/156

    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.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/nabarunnag/incubator-geode feature/GEODE-1543

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-geode/pull/156.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 #156
    
----
commit 3af0fbb8944010e7c890e0817037568c7bca157d
Author: nabarun <n...@pivotal.io>
Date:   2016-06-13T19:04:50Z

    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.

----


> 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 <PartitionedRegion Message 
> Processor1> 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)<v2>:34609]
> [fine 2016/05/12 09:37:01.744 BST host1-server2 <main> tid=0x1] 
> LocalRegion.createOQLIndexes on region /ClientSessionRegionPosSrv
> [fine 2016/05/12 09:37:01.744 BST host1-server2 <PartitionedRegion Message 
> Processor1> 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 <PartitionedRegion Message 
> Processor1> 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 <main> tid=0x1] QueryService 
> Index creation process for {}ClientSessionRegionPosSrv.byUser
> [fine 2016/05/12 09:37:01.750 BST host1-server2 <PartitionedRegion Message 
> Processor1> 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 <PartitionedRegion Message 
> Processor1> 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 <main> 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 <main> 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)

Reply via email to