Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363964

Summary: Reconciler inconsistent with small sampling
Product: [Eclipse Project] Equinox Reporter: DJ Houghton <dj.houghton>
Component: p2Assignee: John Arthorne <john.arthorne>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: john.arthorne, leberre, pascal, tjwatson
Version: 3.6.2   
Target Milestone: 3.6.2+   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Bug Depends on: 362692, 363963, 363965    
Bug Blocks:    
Attachments:
Description Flags
replacement JARs
none
replacement JARs
none
Replacement jars for p2.reconciler and p2.director
none
Replacement p2.reconciler for 3.6.2 stream none

Description DJ Houghton CLA 2011-11-16 14:25:49 EST
Cloned to track release into 3.6.x stream.

+++ This bug was initially created as a clone of Bug #362692 +++

SAT4J JARs 2.3.0.v20110329

I've got another case of a large data set and we are trying to install a set of bundles (optionally via the reconciler). The resulting solution is inconsistent (different almost every time) and (so far in my tests) it isn't the optimal solution. I've adjusted the conflict timeout value for the solver but there hasn't been any change in the results.

I will put together a JUnit test case to reproduce the problem.
Comment 1 DJ Houghton CLA 2011-11-22 14:13:00 EST
Created attachment 207382 [details]
replacement JARs

Here are some replacement JARs to test with. 

org.eclipse.equinox.p2.director_2.0.3.R36x_v20101117-1018
org.eclipse.equinox.p2.reconciler.dropins_1.1.2.R36x_v20110114
Comment 2 DJ Houghton CLA 2011-12-02 07:10:36 EST
Created attachment 207834 [details]
replacement JARs

New JARs.

org.eclipse.equinox.p2.director_2.0.3.R36x_v20101117-1018.jar
org.eclipse.equinox.p2.reconciler.dropins_1.1.3.R36x_v20110601.jar
Comment 3 DJ Houghton CLA 2012-01-17 14:11:37 EST
Code has been released into 3.8 stream.
Won't change this code in 3.6.x until we see a problem with it, and we get reports of this solution fixing that problem.
Comment 4 John Arthorne CLA 2012-03-01 16:17:28 EST
This is needed in 3.6.2+ after all.
Comment 6 John Arthorne CLA 2012-03-01 16:29:39 EST
Created attachment 211914 [details]
Replacement jars for p2.reconciler and p2.director
Comment 7 John Arthorne CLA 2012-03-02 13:34:24 EST
DJ made two commits for this fix. Here is the second commit for the 3.6 stream:

http://git.eclipse.org/c/equinox/rt.equinox.p2.git/commit/?h=R3_6_maintenance&id=75d06d54058b7b2dfeec0ca13d3b1829214d72f4
Comment 8 John Arthorne CLA 2012-03-02 13:36:22 EST
Created attachment 211995 [details]
Replacement p2.reconciler for 3.6.2 stream