On Wed, Jul 25, 2012 at 11:14 PM, Paul Libbrecht <[email protected]> wrote: > Well, there can be another interpretation to the exception I report below: > the jgroup even notifies the new version has occurred (and has arrived) but > probably the previous would not have arrived yet. > > Does it make sense? > > Do I have another way to tell that the notification has arrived from a remote > node of the cluster?
You have the information in the execution context. You can look at how cache store makes the difference for example. See https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/store/XWikiCacheStore.java#L210 > (we are still using the old notification mechanism but maybe this is a good > reason to upgrade). > > thank you much > > Paul > > > > Le 20 juil. 2012 à 21:58, Paul Libbrecht a écrit : > >> Hello XWiki experts, >> >> ...and a bit later, everything sounds to work very well between >> next.dev.curriki.org and current.dev.curriki.org except one thing: obtaining >> older versions from the Hibernate store within the notifications interface >> fails. This happens when a change of document is made in one node and the >> listener is running on another node. >> >>> [#|2012-07-18T07:27:45.976-0700|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=58;_ThreadName=Incoming-9,event,Dev-current-app-33350;_Reques >>> tID=89a8c4db-c4b5-4192-a6e4-fade41ae14ba;| >>> Comparing version : 10.1 to 9.1|#] >>> >>> [#|2012-07-18T07:27:46.008-0700|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=58;_ThreadName=Incoming-9,event,Dev-current-app-33350;|2012-07-1 >>> 8 07:27:46,006 [Incoming-9,event,Dev-current-app-33350] WARN >>> g.S.DocChangeListener - Trouble for indexing Coll_polx.testohtest_0 >>> com.xpn.xwiki.XWikiException: Error number 3205 in 3: Version 9.1 does not >>> exist while reading document Coll_polx.testohtest_0 >>> at >>> com.xpn.xwiki.store.XWikiHibernateVersioningStore.loadXWikiDoc(XWikiHibernateVersioningStore.java:216) >>> ~[xwiki-platform-legacy-oldcore-3.5.jar:na] >>> at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1448) >>> ~[xwiki-platform-legacy-oldcore-3.5.jar:na] >>> at >>> com.xpn.xwiki.doc.XWikiDocument.getMetaDataDiff(XWikiDocument.java:5454) >>> ~[xwiki-platform-legacy-oldcore-3.5.jar:na] >>> at com.xpn.xwiki.doc.XWikiDocument$getMetaDataDiff$0.call(Unknown >>> Source) ~[na:na] >>> at >>> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42) >>> ~[groovy-all-1.8.6.jar:1.8.6] >>> at >>> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) >>> ~[groovy-all-1.8.6.jar:1.8.6] >>> at >>> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120) >>> ~[groovy-all-1.8.6.jar:1.8.6] >>> at DocChangeListener.notify(script1342563833153805798160.groovy:100) >>> ~[na:na] >>> at com.xpn.xwiki.notify.DocChangeRule.verify(DocChangeRule.java:78) >>> [xwiki-platform-legacy-oldcore-3.5.jar:na] >>> at >>> com.xpn.xwiki.notify.XWikiNotificationManager.verify(XWikiNotificationManager.java:208) >>> [xwiki-platform-legacy-oldcore-3.5.jar:na] >>> at >>> org.xwiki.legacy.internal.oldcore.notification.LegacyNotificationDispatcher.onEvent(LegacyNotificationDispatcher.java:115) >>> [xwiki-platform-legacy-oldcor >>> e-3.5.jar:na] >>> at >>> org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:268) >>> [xwiki-commons-observation-local-3.5.jar:na] >>> at >>> org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:233) >>> [xwiki-commons-observation-local-3.5.jar:na] >> >> >> Is clustering incompatible to "legacy-oldcore" ? >> >> thanks in advance >> >> Paul >> _______________________________________________ >> users mailing list >> [email protected] >> http://lists.xwiki.org/mailman/listinfo/users > > _______________________________________________ > users mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
