Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

Failed to Perform Sync-Replication

Hi,

We have set up a LRU Space, backup and mirror service with external data source (database). The LRU Space is configured with the following pu.xml segment.

<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close"> ... </bean>

<bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"> <property name="dataSource" ref="dataSource"/> ... </bean>

<bean id="hibernateDataSource" class="org.openspaces.persistency.hibernate.StatelessHibernateExternalDataSource"> <property name="sessionFactory" ref="sessionFactory"/> </bean>

<os-core:space id="mySpace" url="/./codeSpace" schema="persistent" mirror="true" external-data-source="hibernateDataSource"> <os-core:properties> <props> <prop key="space-config.engine.cache_policy">0</prop> <prop key="space-config.external-data-source.usage">read-only</prop> ... </os-core:space>

But, "Failed to perform sync-replication" error was thrown when writeMultiple statement executed.

2010-06-13 15:28:06,421 codeSpace.1 [1] SEVERE [com.gigaspaces.core.engine] - Failed to perform sync-replication.; Caused by: com.j_spaces.core.exception.internal.ReplicationInternalSpaceException: SyncReplicationChannel-codeSpace_container1:codeSpace got un-expected error from target space:codeSpace_container1_1:codeSpace url: jini://*/codeSpace_container1_1/codeSpace?groups=gigaspaces-7.1.0-XAPPremium-ga&ignoreValidation=true&mirror=true&schema=persistent&id=1&total_members=2,1&cluster_schema=partitioned-sync2backup&locators=cit:4164,sxj:4164&state=started&timeout=5000 at com.gigaspaces.cluster.replication.sync.SyncReplicationChannel.retransmitFailureEvent(SyncReplicationChannel.java:396) at com.gigaspaces.cluster.replication.sync.AbstractEventDispacher.checkResults(AbstractEventDispacher.java:204) at com.gigaspaces.cluster.replication.sync.AbstractEventDispacher.waitForReplies(AbstractEventDispacher.java:177) at com.gigaspaces.cluster.replication.sync.SyncReplicationController.doSyncReplication(SyncReplicationController.java:122) at com.gigaspaces.cluster.replication.Replicator.replicateSync(Replicator.java:339) at com.gigaspaces.internal.server.space.SpaceEngine.performSyncReplication(SpaceEngine.java:7910) at com.gigaspaces.internal.server.space.SpaceEngine.performTemplateOnEntrySA(SpaceEngine.java:4443) at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntryAndOperateSA(SpaceEngine.java:3382) at com.j_spaces.core.server.processor.Processor.handleDirectReadOrTakeSA(Processor.java:765) at com.gigaspaces.internal.server.space.SpaceEngine.unsafeRead(SpaceEngine.java:1231) at com.gigaspaces.internal.server.space.SpaceEngine.read(SpaceEngine.java:1132) at com.gigaspaces.internal.server.space.SpaceImpl.read(SpaceImpl.java:484) at com.gigaspaces.internal.server.space.IRemoteSpaceGigaspacesMethodinternalInvoke8.internalInvoke(Unknown Source) at com.gigaspaces.internal.reflection.fast.AbstractMethod.invoke(AbstractMethod.java:34) at com.gigaspaces.lrmi.LRMIRuntime.invoked(LRMIRuntime.java:372) at com.gigaspaces.lrmi.nio.Pivot.consumeAndHandleRequest(Pivot.java:462) at com.gigaspaces.lrmi.nio.Pivot.handleRequest(Pivot.java:551) at com.gigaspaces.lrmi.nio.Pivot$ChannelEntryTask.run(Pivot.java:161) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: com.gigaspaces.cluster.replication.sync.SyncReplicationException: Failed to perform Sync-Replication to codeSpace_container1_1:codeSpace member : Replicator: codeSpace_container1_1:codeSpace Catch unexpected error on consuming replication-event SyncPacket=(key=5001,op=TAKE,uid=-825858720^52^codeSpace_container1:codeSpace^1276154225625^9) from [codeSpace_container1:codeSpace]. at com.gigaspaces.cluster.replication.ReplicationTarget.consumeSyncEvent(ReplicationTarget.java:1156) at com.gigaspaces.cluster.replication.sync.SyncReplicationConsumer.consumeTodoQueueEvent(SyncReplicationConsumer.java:114) at com.gigaspaces.cluster.replication.sync.TodoQueueConsumerProcessor.processEvent(TodoQueueConsumerProcessor.java:490) at com.gigaspaces.cluster.replication.sync.TodoQueueConsumerProcessor._consume(TodoQueueConsumerProcessor.java:303) at com.gigaspaces.cluster.replication.sync.TodoQueueConsumerProcessor.consume(TodoQueueConsumerProcessor.java:176) at com.gigaspaces.cluster.replication.sync.ReplicationTodoQueueManager.enqueueBlocked(ReplicationTodoQueueManager.java:107) at com.gigaspaces.cluster.replication.sync.SyncReplicationConsumer.processReplicationEvent(SyncReplicationConsumer.java:81) at com.gigaspaces.cluster.replication.ReplicationTarget.replicate(ReplicationTarget.java:1831) at com.gigaspaces.cluster.replication.IReplicationTargetGigaspacesMethodinternalInvoke4.internalInvoke(Unknown Source)

Any idea? Thanks.

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=3442]{quote}

asked 2010-06-13 22:48:41 -0500

yanchan's avatar

updated 2013-08-08 09:52:00 -0500

jaissefsfex's avatar
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

Can you reproduce the problem?
What's the writeMultiple array size? Does it happens with smaller array?
Does it happens when using ALLINCACHE mode?

answered 2010-06-14 07:01:54 -0500

shay hassidim's avatar
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2010-06-13 22:48:41 -0500

Seen: 78 times

Last updated: Jun 14 '10