Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » Older bundle version remain in plugin folder after update
Older bundle version remain in plugin folder after update [message #1776881] Wed, 22 November 2017 13:24 Go to next message
Stef Senk is currently offline Stef SenkFriend
Messages: 2
Registered: November 2017
Junior Member
Hi,

i have migrated my application from rcp 3x to e4.

Before the migration the p2 update mechanism removed automatically older versions of updated bundles (at the same time two versions of a bundle exists in the build product). The plugin folder looks after an update from product version 3.0 to 3.1 like

bundle_x_3.0
bundle_x_3.1
bundle_y_3.0
bundle_y_3.1

and after an update from product version 3.1 to 3.2

bundle_x_3.1
bundle_x_3.2
bundle_y_3.1
bundle_y_3.2

After migration older bundles remain. After several updates the plugin folder looks like

bundle_x_3.1
bundle_x_3.2
bundle_x_3.3
bundle_x_3.4
bundle_y_3.1
bundle_y_3.2
bundle_y_3.3
bundle_y_3.4

Need help please.

Best regards

Stef
Re: Older bundle version remain in plugin folder after update [message #1776900 is a reply to message #1776881] Wed, 22 November 2017 15:40 Go to previous messageGo to next message
Eclipse UserFriend
p2 doesn't clean up bundles immediately. Check your <<installDir>>/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info file and I suspect you'll only see your 3.4 versions referenced. Your bundles shouldn't be installed in your OSGi runtime, and p2 will garbage collect them eventually. The p2 FAQ has some details.

https://wiki.eclipse.org/Equinox/p2/FAQ#But_why_aren.27t_uninstalled_bundles.2Ffeatures_immediately_removed.3F

You can force a GC, which is covered in the p2 FAQ.

Brian.
Re: Older bundle version remain in plugin folder after update [message #1776945 is a reply to message #1776900] Thu, 23 November 2017 06:56 Go to previous message
Stef Senk is currently offline Stef SenkFriend
Messages: 2
Registered: November 2017
Junior Member
thank you very much for your response.

your are right, the bundles.info only contains the newest bundle version :)

i have tried to trigger the gc manually but nothing happens.
Previous Topic:My RCP does not detect updates from my update site
Next Topic:Translatable update site
Goto Forum:
  


Current Time: Fri Apr 26 17:33:33 GMT 2024

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

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

Back to the top