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

Bug 366382

Summary: during update redownload of identical packages
Product: [Eclipse Project] Equinox Reporter: Michael Woski <woskimi>
Component: p2Assignee: P2 Inbox <equinox.p2-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: irbull, pascal
Version: 3.8.0 Juno   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Michael Woski CLA 2011-12-12 06:53:17 EST
I have been wondering why sometimes updateing my eclipse installation takes so long. I've found out that often packages are getting downloaded multiple times. In the plugin directory I can observe the files being streamed to and eventually being overwritten again. This goes on and on until at some point the whole thing succeeds.
It is not an issue of the latest builds, because this is bothering me for a long long time now.
Maybe it's also important to note that I have a whole bunch of update sites configured.
Are there any options to further explore this behaviour?
Comment 1 DJ Houghton CLA 2011-12-16 11:17:18 EST
JARs should not be re-downloaded if everything is the same. Is this a problem with the JARs included in the SDK or only your extra bundles? Are you able to construct a simple test case that you can attach here for viewing?
Comment 2 Michael Woski CLA 2011-12-16 12:25:36 EST
(In reply to comment #1)
Again, this happens when updates are available (About -> Installation Details -> Installed Software -> Update), so I don't think that the question whether packages have changed is the issue here.
Unfortunately I can't construct a test case because what I do is, I simply try to update my workbench from public p2 repos.
Last time, for instance, I observed it with ...emf.doc.pack.gz (don't remember the exact name though) and also with a couple m2eclipse packages.
As soon as the package in concern finishes downloading, the same package get's downloaded again, and again, and .... until eventually the installation process proceeds. Of course mostly I see it on large packages, but this is certainly only due to my slow perception ... In addition to the Progress View, one can inspect the plugin folder where the files are being streamed to; after apparent completion suddenly (with a short delay though) the file has 0 size again.
I don't know what really triggers this, because most packages download just fine.
Comment 3 DJ Houghton CLA 2011-12-16 13:41:25 EST
What version of Eclipse are you using? This sounds similar to bug 340165 and bug 327256 but both of those should be fixed in Eclipse 3.7. Do you still have the same problem if you turn off mirror by setting the system property?  (eclipse.p2.mirrors=false)
Comment 4 Michael Woski CLA 2011-12-17 14:04:59 EST
(In reply to comment #3)
> What version of Eclipse are you using? This sounds similar to bug 340165 and
> bug 327256 but both of those should be fixed in Eclipse 3.7. Do you still have
> the same problem if you turn off mirror by setting the system property? 
> (eclipse.p2.mirrors=false)

indeed it sounds exactly like my problem. I will try with the system property set, but this might take some time to confirm. Btw. I use 3.8 milestone build.
Comment 5 Michael Woski CLA 2012-02-03 08:34:20 EST
I guess the config setting has solved it for me. I am no longer seeing duplicate downloads.
Comment 6 Ian Bull CLA 2012-02-14 12:46:52 EST
Can I close this bug then?
Comment 7 Michael Woski CLA 2012-02-15 03:14:40 EST
(In reply to comment #6)
> Can I close this bug then?

From my point of view, I can live with it.
Comment 8 Pascal Rapicault CLA 2014-04-07 15:35:59 EDT
closing as per user's last comment.