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

Bug 324643

Summary: planner resolving adds unexpected iu to be installed if multiple repositories are enable
Product: [Eclipse Project] Equinox Reporter: Meng Xin Zhu <kane.zhu>
Component: p2Assignee: P2 Inbox <equinox.p2-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: kane.mx, pascal
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
the enable repositories when planner met problem none

Description Meng Xin Zhu CLA 2010-09-07 07:20:21 EDT
Build Identifier: 3.6

I disabled all repositories except the helios's. Then repeat the steps to install 'memory analyzer', it works well.

I did some debugging. Only one unexpected IU 'org.eclipse.mylyn.commons.net' is selected by planner. The installed version of mylyn.commons.net is 3.4.0.v20100608-0100-e3x, I think it's the parallel version with helios.

So the problem definitely is caused by querying the extra repositories. I'm wondering why querying other repositories when installing the content from a specified repository. Maybe mylyn repository has some issue that defines an IU in metadata, but not has its artifact in the repository. Anyway planner should NOT add the irrelevant IUs to the plan!


Reproducible: Always

Steps to Reproduce:
1. click 'install new software', then choose helios repository 
2. find 'memory analyzer' then check it to install
3. but installation fails in collecting parse due to can't find the artifact 'org.eclipse.mylyn.commons.net_3.4.1.xxx' in all repositories
Comment 1 Meng Xin Zhu CLA 2010-09-07 07:24:02 EDT
Created attachment 178311 [details]
the enable repositories when planner met problem
Comment 2 Pascal Rapicault CLA 2010-09-07 21:19:30 EDT
Something like that got fixed in 3.6.1, could you please try again with a more recent 3.6.x build. Thx.
Comment 3 Meng Xin Zhu CLA 2010-09-07 22:58:28 EDT
I'll verify it on 3.6.x versions.

Looks like disabling then enabling the repository to clean the cached repository. After that, I installed another feature in the helios repository, the higher version of 'org.eclipse.mylyn.commons.net' is picked up by planner again, but that time its artifact was found in the repository of mylyn. I suspect the cached repository had been stale long time. But it didn't be updated until re-enabling it though the artifacts.xml of repository has been updated. Could anybody check it cache manager?
Comment 4 Pascal Rapicault CLA 2012-04-28 23:25:04 EDT
Not sure what to do here. Please reopen with steps / test case allowing to reproduce the problem. Thx.