Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Atomic update of artifacts and metadata in p2 repository
Atomic update of artifacts and metadata in p2 repository [message #1833407] Mon, 12 October 2020 12:57 Go to next message
Thorsten Meinl is currently offline Thorsten MeinlFriend
Messages: 2
Registered: March 2016
Junior Member
In our build system with ~100 p2 repositories we have frequent cases where installing features fails because the p2 directory claims it cannot find the artifact to a feature or bundle. This happens if the corresponding p2 repository has been updated shortly before the installation request (up to one minute). Our p2 repositories are all composite repositories with ~5 children. The composite.jar files get both updated within a fraction of a second (two move commands with the two files), first the artifacts then the metadata. Still the updated metadata seems to be available to the p2 director while the artifacts are not. Installations that run more than a minute after the repository has been updated are able to find the artifacts.
Is there any way to guarantee an atomic update of p2 repositories so that clients see a consistent state?
Re: Atomic update of artifacts and metadata in p2 repository [message #1833415 is a reply to message #1833407] Mon, 12 October 2020 14:58 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 32013
Registered: July 2009
Senior Member
I believe the content metadata is generally read early in the process while doing the resolution to find a solution. The artifact metadata is read later in the processing, i.e., once installation of the resolution proceeds. As such, I don't believe there is anything you can do on the server to make the changes to the repo on the server appear to be atomic as seen by the client. There will always exist that window of time between when the content metadata is read and when the artifact metadata is read.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Server returned lastModified warning when installing plugin
Next Topic:Problem Restarting after RCP Update from Java 8 to Java 11
Goto Forum:
  


Current Time: Sat Sep 18 05:41:10 GMT 2021

Powered by FUDForum. Page generated in 0.01843 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top