Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Session not in sync after reconnect([CDO] Session not in sync after reconnect)
[CDO] Session not in sync after reconnect [message #1142179] Thu, 17 October 2013 12:54 Go to next message
xjn Mising nameFriend
Messages: 20
Registered: May 2010
Junior Member
Hi,

first, i'm really new to CDO. I'm working with your examples, created
my own model and played around. Everything was fine Smile


Then i would like to use the "ReconnectingCDOSession" and it does not
work as expected.


Scenario :

0a) CDO Server (port 2036) running
0b) Proxy (port 2037) to CDO Server running

0c) clientA session/tx to proxy with "ReconnectingCDOSession"
0d) clientB session/tx to server with normal CDOSession

1) clientB adds data to model and commits, new data visible in clientB and clientA

2) kill proxy, clientA disconnected and retrying to proxy

3) clientB adds more data to model, commit, the new more data is visible in clientB

4) restart proxy, clientA reconnecting sucessfull, BUT only the first added data are visible in clientA, the new more data from step 3) are missing/not visible in clientA

If i create a new "ReconnectingCDOSession" in clientB and open a view/tx, all the data is visible.

Currently i have no idea what to do or where to look for more info ...


br
xjn

Re: [CDO] Session not in sync after reconnect [message #1147061 is a reply to message #1142179] Sun, 20 October 2013 16:14 Go to previous messageGo to next message
xjn Mising nameFriend
Messages: 20
Registered: May 2010
Junior Member
Hi again,

so many reads, but no reply ...


May be anybody could help about my topic
or give me an idea where to look or to
ask for more info ?


I don't like to "reinvent the wheel", because
automatic reconnecting should be a default and
working feature for "Connected/distributed Data
Object"s.


thx
xjn
Re: [CDO] Session not in sync after reconnect [message #1151864 is a reply to message #1142179] Wed, 23 October 2013 17:04 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi Xjn,

Sorry for the late reply.

Comments below...


Am 17.10.2013 14:54, schrieb xjn Mising name:
> Hi,
>
> first, i'm really new to CDO. I'm working with your examples, created my own model and played around. Everything was
> fine :)
>
>
> Then i would like to use the "ReconnectingCDOSession" and it does not work as expected.
>
>
> Scenario :
>
> 0a) CDO Server (port 2036) running 0b) Proxy (port 2037) to CDO Server running
What exactly is that proxy? Can you reproduce the problem without that proxy?

> 0c) clientA session/tx to proxy with "ReconnectingCDOSession"
> 0d) clientB session/tx to server with normal CDOSession
>
> 1) clientB adds data to model and commits, new data visible in clientB and clientA
>
> 2) kill proxy, clientA disconnected and retrying to proxy
> 3) clientB adds more data to model, commit, the new more data is visible in clientB
>
> 4) restart proxy, clientA reconnecting sucessfull, BUT only the first added data are visible in clientA, the new more
> data from step 3) are missing/not visible in clientA
>
> If i create a new "ReconnectingCDOSession" in clientB and open a view/tx, all the data is visible.
What CDO version are you using?

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: [CDO] Session not in sync after reconnect [message #1156087 is a reply to message #1142179] Sat, 26 October 2013 09:31 Go to previous messageGo to next message
xjn Mising nameFriend
Messages: 20
Registered: May 2010
Junior Member
Hi Eike,

Comments below...


Am 17.10.2013 14:54, schrieb xjn Mising name:
> Hi,
>
> first, i'm really new to CDO. I'm working with your examples, created my own model and played around. Everything was
> fine Smile
>
>
> Then i would like to use the "ReconnectingCDOSession" and it does not work as expected.
>
>
> Scenario :
>
> 0a) CDO Server (port 2036) running 0b) Proxy (port 2037) to CDO Server running
What exactly is that proxy? Can you reproduce the problem without that proxy?

The proxy ist only to test "connection down". Yes, it happens also if i manually
shutdown/restart a CDO server.


> ...
> If i create a new "ReconnectingCDOSession" in clientB and open a view/tx, all the data is visible.
What CDO version are you using?

Latest from Update-Site for Kepler (...emf.cdo = 4.2.1v20130913-0613)



I have attached a small JUnit Plugin test which i hope shows the problem.



br
xjn
Re: [CDO] Session not in sync after reconnect [message #1156093 is a reply to message #1156087] Sat, 26 October 2013 09:38 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi Xjn,

I'm currently too busy with my preparations for EclipseCon next week. Please submit a bugzilla and attach your zip there
(plus a detailed description of the steps needed to execute).

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Am 26.10.2013 11:31, schrieb xjn Mising name:
> Hi Eike,
>
> Comments below...
>
>
> Am 17.10.2013 14:54, schrieb xjn Mising name:
>> Hi,
>>
>> first, i'm really new to CDO. I'm working with your examples, created my own model and played around. Everything was
>> fine :)
>>
>>
>> Then i would like to use the "ReconnectingCDOSession" and it does not work as expected.
>>
>>
>> Scenario :
>>
>> 0a) CDO Server (port 2036) running 0b) Proxy (port 2037) to CDO Server running
> What exactly is that proxy? Can you reproduce the problem without that proxy?
>
> The proxy ist only to test "connection down". Yes, it happens also if i manually
> shutdown/restart a CDO server.
>
>
>> ...
>> If i create a new "ReconnectingCDOSession" in clientB and open a view/tx, all the data is visible.
> What CDO version are you using?
>
> Latest from Update-Site for Kepler (...emf.cdo = 4.2.1v20130913-0613)
>
>
>
> I have attached a small JUnit Plugin test which i hope shows the problem.
>
>


Re: [CDO] Session not in sync after reconnect [message #1266624 is a reply to message #1156093] Fri, 07 March 2014 18:35 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 26.10.2013 11:38, schrieb Eike Stepper:
> Hi Xjn,
>
> [...] Please submit a bugzilla and attach your zip there (plus a detailed description of the steps needed to execute).
No bugzilla had been created so this got forgotten. Now someone else reported the same problem and I think I've fixed it in:

429864: Reconnecting session misses commits that occured while being unconnected
https://bugs.eclipse.org/bugs/show_bug.cgi?id=429864

Please note that one of the two tests in your zip still fails but I believe that is because of your TcpProxyThread. In
the context of the bugzilla above I created tests that pass in CDO:

http://git.eclipse.org/c/cdo/cdo.git/tree/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/ReconnectingSessionTest.java

The test uses a second TCPAcceptor instead of TcpProxyThread to disturb the second CDOSession.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Previous Topic:Operations and inheritance Ecore
Next Topic: Saving of a resource and modifying the same after save operation
Goto Forum:
  


Current Time: Fri Apr 26 09:47:30 GMT 2024

Powered by FUDForum. Page generated in 0.03441 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top