[ 
https://issues.apache.org/jira/browse/GEODE-1188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anthony Baker closed GEODE-1188.
--------------------------------

> An IllegalStateException is thrown if Lucene indexes are defined on a 
> PARTITION_REDUNDANT region
> ------------------------------------------------------------------------------------------------
>
>                 Key: GEODE-1188
>                 URL: https://issues.apache.org/jira/browse/GEODE-1188
>             Project: Geode
>          Issue Type: Bug
>          Components: lucene
>            Reporter: Barry Oglesby
>            Assignee: Jason Huynh
>             Fix For: 1.0.0-incubating.M3
>
>
> The following {{IllegalStateException}} is thrown if {{Lucene}} indexes are 
> defined on a {{PARTITION_REDUNDANT}} region:
> {noformat}
> [error 2016/04/06 13:03:21.130 PDT <main> tid=0x1] 
> java.lang.IllegalStateException: Current PartitionedRegion's redundancy 
> should be same as the redundancy of colocated PartitionedRegion
> Exception in thread "main" java.lang.IllegalStateException: Current 
> PartitionedRegion's redundancy should be same as the redundancy of colocated 
> PartitionedRegion
>       at 
> com.gemstone.gemfire.internal.cache.PartitionAttributesImpl.validateColocation(PartitionAttributesImpl.java:713)
>       at 
> com.gemstone.gemfire.internal.cache.PartitionRegionConfigValidator.validateColocation(PartitionRegionConfigValidator.java:315)
>       at 
> com.gemstone.gemfire.internal.cache.PartitionedRegion.initPRInternals(PartitionedRegion.java:995)
>       at 
> com.gemstone.gemfire.internal.cache.PartitionedRegion.initialize(PartitionedRegion.java:1192)
>       at 
> com.gemstone.gemfire.internal.cache.GemFireCacheImpl.createVMRegion(GemFireCacheImpl.java:3173)
>       at 
> com.gemstone.gemfire.internal.cache.GemFireCacheImpl.basicCreateRegion(GemFireCacheImpl.java:3065)
>       at 
> com.gemstone.gemfire.internal.cache.GemFireCacheImpl.createRegion(GemFireCacheImpl.java:3054)
>       at 
> com.gemstone.gemfire.cache.RegionFactory.create(RegionFactory.java:847)
>       at 
> com.gemstone.gemfire.cache.lucene.internal.LuceneIndexForPartitionedRegion.initialize(LuceneIndexForPartitionedRegion.java:93)
>       at 
> com.gemstone.gemfire.cache.lucene.internal.LuceneServiceImpl.afterDataRegionCreated(LuceneServiceImpl.java:166)
>       at 
> com.gemstone.gemfire.cache.lucene.internal.xml.LuceneIndexCreation.onCreate(LuceneIndexCreation.java:100)
>       at 
> com.gemstone.gemfire.internal.cache.extension.SimpleExtensionPoint.fireCreate(SimpleExtensionPoint.java:81)
>       at 
> com.gemstone.gemfire.internal.cache.xmlcache.RegionCreation.fillIn(RegionCreation.java:180)
>       at 
> com.gemstone.gemfire.internal.cache.xmlcache.RegionCreation.createRoot(RegionCreation.java:272)
>       at 
> com.gemstone.gemfire.internal.cache.xmlcache.CacheCreation.initializeRegions(CacheCreation.java:581)
>       at 
> com.gemstone.gemfire.internal.cache.xmlcache.CacheCreation.create(CacheCreation.java:554)
>       at 
> com.gemstone.gemfire.internal.cache.xmlcache.CacheXmlParser.create(CacheXmlParser.java:354)
>       at 
> com.gemstone.gemfire.internal.cache.GemFireCacheImpl.loadCacheXml(GemFireCacheImpl.java:4387)
>       at 
> com.gemstone.gemfire.internal.cache.GemFireCacheImpl.initializeDeclarativeCache(GemFireCacheImpl.java:1364)
>       at 
> com.gemstone.gemfire.internal.cache.GemFireCacheImpl.initialize(GemFireCacheImpl.java:1176)
>       at 
> com.gemstone.gemfire.internal.cache.GemFireCacheImpl.basicCreate(GemFireCacheImpl.java:796)
>       at 
> com.gemstone.gemfire.internal.cache.GemFireCacheImpl.create(GemFireCacheImpl.java:784)
>       at com.gemstone.gemfire.cache.CacheFactory.create(CacheFactory.java:178)
>       at com.gemstone.gemfire.cache.CacheFactory.create(CacheFactory.java:228)
>       at TestBase.initializeServerCache(TestBase.java:22)
>       at TestServer.main(TestServer.java:9)
> {noformat}
> {{LuceneIndexForPartitionedRegion.initialize}} needs to add a line like this 
> when the {{fileRegion}} and {{chunkRegion}} regions are being created:
> {noformat}
> .setRedundantCopies(partitionAttributes.getRedundantCopies())
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to