Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327735 - Various problems with FailoverExample
Summary: Various problems with FailoverExample
Status: CLOSED WORKSFORME
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.core (show other bugs)
Version: 4.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-14 01:23 EDT by Caspar D. CLA
Modified: 2012-12-31 04:51 EST (History)
1 user (show)

See Also:


Attachments
Stacktrace 1 (2.78 KB, text/plain)
2010-10-14 01:24 EDT, Caspar D. CLA
no flags Details
Stacktrace 2 (1.74 KB, text/plain)
2010-10-14 01:24 EDT, Caspar D. CLA
no flags Details
Stacktrace 3 (1.08 KB, text/plain)
2010-10-14 01:24 EDT, Caspar D. CLA
no flags Details
Stacktrace 4 (3.27 KB, text/plain)
2010-10-14 01:57 EDT, Caspar D. CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Caspar D. CLA 2010-10-14 01:23:28 EDT
I was experimenting with the FailoverExample and noticed several problems
occurring repeatedly (though not always). What I typically do is: start
the Monitor, start Agent1, start Agent2, then start the Client. (Note that
since recently the latter actually performs a commit, and so triggers a 
sync.) The problems all occur in Agent2, which is the BACKUP repo.

(1) Sometimes, during the first sync (triggered by Agent2's startup), the
    thread of RepositorySynchronizer$ReplicateRunnable does not have
    an associated session in its StoreThreadLocal. (see trace1.txt)

(2) Sometimes, during a later sync (triggered by Client's commit), the
    thread of RepositorySynchronizer$CommitRunnable does not have
    an associated session in its StoreThreadLocal. (see trace2.txt)

(3) Sometimes, during a later sync, one (or more?) of the "revisions"
    contained in the commitInfo, is a CDOIIDAndVersionImpl, which 
    cannot be cast to an InternalCDORevision. (see trace3.txt)

Attaching stacktraces shortly.
Comment 1 Caspar D. CLA 2010-10-14 01:24:09 EDT
Created attachment 180846 [details]
Stacktrace 1
Comment 2 Caspar D. CLA 2010-10-14 01:24:32 EDT
Created attachment 180847 [details]
Stacktrace 2
Comment 3 Caspar D. CLA 2010-10-14 01:24:56 EDT
Created attachment 180848 [details]
Stacktrace 3
Comment 4 Caspar D. CLA 2010-10-14 01:57:16 EDT
Created attachment 180850 [details]
Stacktrace 4

Adding:

(4) Sometimes, during the first sync (triggered by Agent2's startup), Agent2
    complains that "Generated packages locally not available". (see trace4.txt)
Comment 5 Eike Stepper CLA 2011-01-27 05:15:39 EST
Caspar, I wonder if we've fixed this already.
Comment 6 Caspar D. CLA 2011-01-30 22:13:55 EST
I didn't do anything that would fix it.

I ran the example today, and I still see all kinds of
exceptions flying (though it seems different ones from
what I reported before).

I also noticed that RecoveringCDOSessionConfigurationImpl
doesn't have any default values for the config params
that it abstracts, such as hearbeat period, connector
timeout etc. I'll open another zilla for that.
Comment 7 Eike Stepper CLA 2012-06-05 07:28:38 EDT
Moving all open bug reports to 4.1 because the release is very near and it's hghly unlikely that there will be spare time to address 4.0 problems.

Please make sure that your patches can be applied against the master branch and that your problem is not already fixed there!!!
Comment 8 Eike Stepper CLA 2012-08-14 22:52:45 EDT
Moving all open issues to 4.2. Open bugs can be ported to 4.1 maintenance after they've been fixed in master.
Comment 9 Eike Stepper CLA 2012-12-31 04:51:57 EST
I believe that most of the mentioned problems have been fixed recently through other bugs (namely the new offline example app).