Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[equinox-dev] Framework extensions - and Eclipse dropins issue
  • From: Krzysztof Daniel <kdaniel@xxxxxxxxxx>
  • Date: Wed, 04 Sep 2013 10:54:51 +0200
  • Delivered-to: equinox-dev@xxxxxxxxxxx
  • Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAAA3NCSVQICAjb4U/gAAAHIklEQVRYw61YTWwbxxX+SC5FmVr9mCuzNF1KlFFT5GphG1VaJYHSGE4QA+LNhwrJQb32XLg5BT4YaBAkhdGjz0JTQD4YuYiHIjHk2khqIKnlYLUUKcCmvYFD0FqHspcEKS61PbzlcMU/kyIHxGJ3uDvzzffe+96bcVRKBnppVaPq4lx07eadhit7p93nzl7RNA9XNapGSTNKWsO/9nfsPR1WAoDrBgEbwj6WUdIeZ4prqze21ldZ51x8ZXnlz6d/E2z5STfN0cFk7RiuGtWHX9784vrHHcb9618+P7v8ATcstBytA9C2gJiXNLjLzrbawEq7RmydiYbsTDdQ3htDzW1nW726/HZPJri29u2ZaKjd8vpyaqOkra3eQI/t6vLbO9sqcUP0sJu+AFWN6mfXrnew1McfLdmNxa4A1lZvGCWty4m410oO3T/88mZLNHPxlfj4LsO0vjdJrzE0ALbWV3+clX77pw87ENMVIIamalQTKdkOYmt9tQZld31vkmGKj+/GP1oCrEfEVwhfIiWfa9LGozu13ZftlHTTGGf//Oo/rpmZltLasw+9un/P7hzre5PdA2LoH5W5fn2og7sAiIUiSTXd/FosFGnyd3z+r8Sr+/cQ/XAwgBIpeS6+ckXyQfgDAGgyAMyLsXkRPygAkmo6dv4ywgetv1fTRG2/Tm2X/Pj4roUGwLzIewPW/TsBAL/DxeYP9WLWxll6PSWfwx9fO11v2R7hg7Y0NLU66MPO1C+gQ+GQceIITZAAmIELA3Pq+uJs9JgeoVFCyhp1Osqa3WTQ5FgoolQwGIaaF9dgi3YQ2702UB/qpsIqay1NBgDq08EAEgO+7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3s2Q2D! SzS4ipkoD DqFYUgNTsToeG9AT2cdQ9FTcA08sad793vvY/QRM9RFvrfTUd2w5HdoFTFdkJ1C2acVFFYtiOFrBVlDE1tuCkHN+H4+SWAyjdfdyj12zKkVIIIBAFA8KnT4igwE/Y+zhSZt5LJqPKqdfrr/9pyH0m8i3OV0tZpiXHne+7Spd4YIo8ZXVhklBCambDXVnJY0zdEO6Fhud08OUY6wr37hvu99weg1K/u33t1/x4dwT7OFFVTslKs6EfGaQ91ZixCQznfwU1Q/qGb4UuX3JHenZpOx+1nl4Ts7PIHAPQn2RGqdcJUwzsBp44c4ET4YOT4HNsV7ftOscN/ovxMNNQu5gG4rn5ytfVhyk+5Pd/JxsNGLXdq+tzxCfeT/PFjpa2hY/6hY/5fT43sPy9AkyFO8sFfufnpBjR0iJtIyTtabrpU+vmhfCIadHLennVoaVYaXVicCXvZRpPkG5aDS6EHCnkSlbD2mpDQkKV2tlU2YCIlL81Kn127/smnf2s56f8BT1i2ky/8xFYAAAAASUVORK5CYII=
  • List-archive: <https://dev.eclipse.org/mailman/private/equinox-dev>
  • List-help: <mailto:equinox-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://dev.eclipse.org/mailman/listinfo/equinox-dev>, <mailto:equinox-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://dev.eclipse.org/mailman/options/equinox-dev>, <mailto:equinox-dev-request@eclipse.org?subject=unsubscribe>
  • Organization: Red Hat

Hello everyone (and Thomas in particular :-)),

It's a well known fact that p2 reconciler is invoked in
BundleActivator.start method. I think of it as a design issue (or even
contract violation) because #start() should be short, but what's more
important, the framework is restarted from within this #start method.

Now, thanks to existing bugs in bundle depencies, restart is never
complete (f.e. system bundle and common equinox bundles are not
restarted), which leads to CCE if large chunks of software are deployed
via dropins. I've patches for those bugs, but I end up with:

org.osgi.framework.BundleException: State change in progress for bundle
"reference:file:plugins/org.eclipse.equinox.p2.reconciler.dropins_1.1.200.v20130903-1238.jar" by thread "Start Level Event Dispatcher".
	at
org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1088)
	at
org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:564)
	at
org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1206)

which means more or less that dropins can't be stopped because it is
still starting. I couldn't see any way of fixing this until I found
recently https://bugs.eclipse.org/bugs/show_bug.cgi?id=253244#c27 which
brought some hope.

Is it possible (or will it be possible) to restart framework immediately
after current method completes? What I'd like to write (in dropins)
start {
	doP2magic();
	if(restartRequired)
		restartFrameworkWithoutStartingAnyNewBundles();
}
The point is that restart has to happen after start method ends, but
before any other (especially ui) bundle is started.

-- 
Krzysztof Daniel <kdaniel@xxxxxxxxxx>
Red Hat



Back to the top