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

Guoxiang Zu updated GEODE-7898:
-------------------------------
    Priority: Critical  (was: Major)

> error happen when start the second server before restarting the first server, 
> in case of REPLICATE_PERSISTENT data region
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: GEODE-7898
>                 URL: https://issues.apache.org/jira/browse/GEODE-7898
>             Project: Geode
>          Issue Type: Bug
>            Reporter: Guoxiang Zu
>            Priority: Critical
>
> Just one step different(the server2 is started before the restarting of 
> server1) with the quick start tutorial 
> [https://geode.apache.org/docs/guide/11/getting_started/15_minute_quickstart_gfsh.html]
> the steps are as following:
> "
> gfsh
> start locator --name=locator1
> start server --name=server1 --server-port=40411
> create region --name=regionA --type=REPLICATE_PERSISTENT
> put --region=regionA --key="1" --value="one"
> stop server --name=server1
> start server --name=server2 --server-port=40412
> start server --name=server1 --server-port=40411
> "
> Got the following error:
> "
> tarting a Geode Server in /home/ezuxguo/install_geode/my_geode/server1...
> The Cache Server process terminated unexpectedly with exit status 1. Please 
> refer to the log file in /home/ezuxguo/install_geode/my_geode/server1 for 
> full details.
> Exception in thread "main" 
> org.apache.geode.cache.persistence.ConflictingPersistentDataException: Region 
> /regionB remote member 192.168.240.1(server2:29316)<v3>:41001 with persistent 
> data /192.168.240.1:/home/ezuxguo/install_geode/my_geode/server2/. created at 
> timestamp 1584793471853 version 0 diskStoreId 
> 609fc92b54d54334-ae4afa44b63cd641 name server2 was not part of the same 
> distributed system as the local data from 
> /192.168.240.1:/home/ezuxguo/install_geode/my_geode/server1/. created at 
> timestamp 1584792633397 version 0 diskStoreId 
> f1a472367a3141b9-b2c1f9287f14981d name server1
> at 
> org.apache.geode.internal.cache.persistence.PersistenceAdvisorImpl.checkMyStateOnMembers(PersistenceAdvisorImpl.java:526)
> at 
> org.apache.geode.internal.cache.persistence.PersistenceInitialImageAdvisor.removeReplicatesIfWeAreEqualToAnyOrElseClearEqualMembers(PersistenceInitialImageAdvisor.java:179)
> at 
> org.apache.geode.internal.cache.persistence.PersistenceInitialImageAdvisor.getAdvice(PersistenceInitialImageAdvisor.java:67)
> at 
> org.apache.geode.internal.cache.persistence.PersistenceAdvisorImpl.getInitialImageAdvice(PersistenceAdvisorImpl.java:833)
> at 
> org.apache.geode.internal.cache.persistence.CreatePersistentRegionProcessor.getInitialImageAdvice(CreatePersistentRegionProcessor.java:52)
> at 
> org.apache.geode.internal.cache.DistributedRegion.getInitialImageAndRecovery(DistributedRegion.java:1195)
> at 
> org.apache.geode.internal.cache.DistributedRegion.initialize(DistributedRegion.java:1080)
> at 
> org.apache.geode.internal.cache.GemFireCacheImpl.createVMRegion(GemFireCacheImpl.java:3040)
> at 
> org.apache.geode.internal.cache.GemFireCacheImpl.basicCreateRegion(GemFireCacheImpl.java:2928)
> at 
> org.apache.geode.internal.cache.xmlcache.RegionCreation.createRoot(RegionCreation.java:237)
> at 
> org.apache.geode.internal.cache.xmlcache.CacheCreation.initializeRegions(CacheCreation.java:634)
> at 
> org.apache.geode.internal.cache.xmlcache.CacheCreation.create(CacheCreation.java:580)
> at 
> org.apache.geode.internal.cache.xmlcache.CacheXmlParser.create(CacheXmlParser.java:338)
> at 
> org.apache.geode.internal.cache.GemFireCacheImpl.loadCacheXml(GemFireCacheImpl.java:4296)
> at 
> org.apache.geode.internal.cache.ClusterConfigurationLoader.applyClusterXmlConfiguration(ClusterConfigurationLoader.java:200)
> at 
> org.apache.geode.internal.cache.GemFireCacheImpl.applyJarAndXmlFromClusterConfig(GemFireCacheImpl.java:1256)
> at 
> org.apache.geode.internal.cache.GemFireCacheImpl.initialize(GemFireCacheImpl.java:1224)
> at 
> org.apache.geode.internal.cache.InternalCacheBuilder.create(InternalCacheBuilder.java:191)
> at 
> org.apache.geode.internal.cache.InternalCacheBuilder.create(InternalCacheBuilder.java:158)
> at org.apache.geode.cache.CacheFactory.create(CacheFactory.java:142)
> at 
> org.apache.geode.distributed.internal.DefaultServerLauncherCacheProvider.createCache(DefaultServerLauncherCacheProvider.java:52)
> at 
> org.apache.geode.distributed.ServerLauncher.createCache(ServerLauncher.java:894)
> at org.apache.geode.distributed.ServerLauncher.start(ServerLauncher.java:809)
> at org.apache.geode.distributed.ServerLauncher.run(ServerLauncher.java:739)
> at org.apache.geode.distributed.ServerLauncher.main(ServerLauncher.java:256)
> "
> After this error, then I almost can not do anything, have to "destroy 
> regionA" to solve this problem.
>  
> In case in the strategy is that server1 should be started before server2, 
> then server2 should wait for the starting of server1.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to