killbill-platform icon indicating copy to clipboard operation
killbill-platform copied to clipboard

IllegalStateException : version null cannot be started when installing plugin

Open xsalefter opened this issue 10 months ago • 0 comments

There's random exception thrown when installing plugin.

2024-03-29T22:00:36,844+0000 lvl='ERROR', log='Bus', th='bus_events-th', xff='', rId='', tok='', aRId='', tRId='0', Exception thrown by subscriber method handleKillbillEvent(org.killbill.billing.notification.plugin.api.ExtBusEvent) on subscriber org.killbill.billing.osgi.OSGIListener@7cc8ae6c when dispatching event: DefaultBusExternalEvent{objectId=null, accountId=null, tenantId=null, objectType=SERVICE_BROADCAST, eventType=BROADCAST_SERVICE}
java.lang.IllegalStateException: Plugin <XXX>-plugin--7997d0 version null cannot be started because the version 1.0.1-7997d04 already exists in the registry (state = 32)
	at org.killbill.billing.osgi.BundleRegistry.installAndStartNewBundle(BundleRegistry.java:74)
	at org.killbill.billing.osgi.OSGIListener.handleKillbillEvent(OSGIListener.java:109)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

This might have something to do with calling various /nodesInfo endpoints (install, start, check at almost the same time) and there's race condition? Need more investigation when this actually happened.

xsalefter avatar Mar 30 '24 01:03 xsalefter