P2: cached repository data [message #848641] |
Wed, 18 April 2012 08:45  |
Eclipse User |
|
|
|
Hello,
I am having am issue with the repository cache maintained by P2 update: for reasons outside of my control, we are completely replacing the repository every time we deploy a new version of our application. When the app starts up, the (built-in) P2 autoupdate reads that repository through the ever-same URL.
Now I discovered that, even though the repository contains new versions of the alreday installed bundles/features, the update operation reports a STATUS_NOTHING_TO_UPDATE. I then discovered 2 files in the p2/org.eclipse.equinox.p2.repository/cache subdirectory of the installation, which I deleted. After that, the new versions were discovered and installed correctly.
My question: how does P2 determine whether the cache is stale? Can I disable caching altogether?
TIA,
chris
|
|
|
|
Re: P2: cached repository data [message #849827 is a reply to message #849274] |
Thu, 19 April 2012 09:35   |
Eclipse User |
|
|
|
I am still not getting anywhere with this. Heres my scenario:
1. I start my application, which updates from a remote repository. Afterwards, I find 2 files in the p2\org.eclipse.equinox.p2.repository\cache directory, namely artifacts646910755.jar and content646910755.jar. Both have a file timestamp of, say, 15:17. I close the app.
2. I replace the repository with another one, which contains updated features. The second repository was exported after the first one, therefore all file timestamps are later. However, the timestamps in the cache are (obviously) the youngest.
3. I again start the app, expecting autoupdate to happen. However, it reports "no updates found"! I have to go and manually delete the files mentioned in 1., and restart the app. Now the update takes place.
I have looked at the code you mentioned (SimpleMetadataRepositoryFactory#getLocalFile()), but couldn't gather from there what the issue is. Any help appreciated..
thanks,
chris
|
|
|
|
|
|
Re: P2: cached repository data [message #850810 is a reply to message #850797] |
Fri, 20 April 2012 06:54  |
Eclipse User |
|
|
|
a quick search yields Bug 324200 and Bug 343513 in the eclipse bugzilla. The latter is marked as duplicate of the former, and the former dates from 09/2010 and has ASSIGNDED status, although the corresponding fix is already in the indigo code base. I think it should be marked CLOSED.
|
|
|
Powered by
FUDForum. Page generated in 0.04200 seconds