eclipse-kura / kura

Eclipse Kura™ is a versatile framework to supercharge your edge devices, streamlining the process of configuring your gateway, connecting sensors, and IoT devices to seamlessly collect, process, and send data to the cloud.
https://eclipse.dev/kura/
Eclipse Public License 2.0
500 stars 309 forks source link

[Multiple Cloud Connections] Spurious component reactivations upon configuration change #311

Closed cdealti closed 6 years ago

cdealti commented 8 years ago

Multiple connections: updating a service (e.g. MqttDataTransport) of a connection has the effect to cause the unwanted reactivation of the next higher layer service (i.e. DataService) of the other connection(s). This in turn will cause the reactivation of all dependent components. This is not desired and not yet understood (Equinox bug?).

cdealti commented 8 years ago

I wonder if we should consider upgrading Equinox at some point

dwoodard1 commented 8 years ago

I think we should consider upgrading. I believe we are 5 versions behind at this point.

On Jul 15, 2016, at 07:52, Cristiano De Alti notifications@github.com<mailto:notifications@github.com> wrote:

I wonder if we should consider upgrading Equinox at some point

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/eclipse/kura/issues/311#issuecomment-232932979, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABU-kr0j09qgrwO8HkhBgF6Y6YefJupUks5qV3R8gaJpZM4JJjwo.

cdealti commented 7 years ago

@MMaiero is this still present in Equinox 3.11?

MMaiero commented 7 years ago

@cdealti Unfortunately yes

cdealti commented 7 years ago

Then we should report this behavior to Equinox

MMaiero commented 7 years ago

I agree. Following what reported in kura-console.log. If I remember well, this is the same message that we got from the old osgi.

`!ENTRY org.eclipse.kura.core.cloud 2 0 2017-03-14 13:20:39.076 !MESSAGE [SCR] ComponentReference.unbind(): component instance not bound! It is: org.eclipse.equinox.internal.ds.impl.ComponentInstanceImpl@18e0f3a Details: Problematic reference = Reference[name = DataService, interface = org.eclipse.kura.data.DataService, policy = static, cardinality = 1..1, target = null, bind = setDataService, unbind = unsetDataService] of service component = org.eclipse.kura.cloud.CloudService component implementation class = org.eclipse.kura.core.cloud.CloudServiceImpl located in bundle with symbolic name = org.eclipse.kura.core.cloud bundle location = initial@reference:file:../../kura/kura/plugins/org.eclipse.kura.core.cloud_1.1.0-SNAPSHOT.jar

!ENTRY org.eclipse.kura.core 2 0 2017-03-14 13:20:41.159 !MESSAGE [SCR] ComponentReference.unbind(): component instance not bound! It is: org.eclipse.equinox.internal.ds.impl.ComponentInstanceImpl@18cfa37 Details: Problematic reference = Reference[name = DataTransportService, interface = org.eclipse.kura.data.DataTransportService, policy = static, cardinality = 1..1, target = null, bind = setDataTransportService, unbind = unsetDataTransportService] of service component = org.eclipse.kura.data.DataService component implementation class = org.eclipse.kura.core.data.DataServiceImpl located in bundle with symbolic name = org.eclipse.kura.core bundle location = initial@reference:file:../../kura/kura/plugins/org.eclipse.kura.core_1.0.11-SNAPSHOT.jar

!ENTRY org.eclipse.kura.core.cloud 2 0 2017-03-14 13:20:43.339 !MESSAGE [SCR] ComponentReference.unbind(): component instance not bound! It is: org.eclipse.equinox.internal.ds.impl.ComponentInstanceImpl@fbc2c1 Details: Problematic reference = Reference[name = DataService, interface = org.eclipse.kura.data.DataService, policy = static, cardinality = 1..1, target = null, bind = setDataService, unbind = unsetDataService] of service component = org.eclipse.kura.cloud.CloudService component implementation class = org.eclipse.kura.core.cloud.CloudServiceImpl located in bundle with symbolic name = org.eclipse.kura.core.cloud bundle location = initial@reference:file:../../kura/kura/plugins/org.eclipse.kura.core.cloud_1.1.0-SNAPSHOT.jar

!ENTRY org.eclipse.kura.core.cloud 2 0 2017-03-14 13:21:30.392 !MESSAGE [SCR] ComponentReference.unbind(): component instance not bound! It is: org.eclipse.equinox.internal.ds.impl.ComponentInstanceImpl@134be49 Details: Problematic reference = Reference[name = DataService, interface = org.eclipse.kura.data.DataService, policy = static, cardinality = 1..1, target = null, bind = setDataService, unbind = unsetDataService] of service component = org.eclipse.kura.cloud.CloudService component implementation class = org.eclipse.kura.core.cloud.CloudServiceImpl located in bundle with symbolic name = org.eclipse.kura.core.cloud bundle location = initial@reference:file:../../kura/kura/plugins/org.eclipse.kura.core.cloud_1.1.0-SNAPSHOT.jar

!ENTRY org.eclipse.kura.core 2 0 2017-03-14 13:21:32.568 !MESSAGE [SCR] ComponentReference.unbind(): component instance not bound! It is: org.eclipse.equinox.internal.ds.impl.ComponentInstanceImpl@1f59ff2 Details: Problematic reference = Reference[name = DataTransportService, interface = org.eclipse.kura.data.DataTransportService, policy = static, cardinality = 1..1, target = null, bind = setDataTransportService, unbind = unsetDataTransportService] of service component = org.eclipse.kura.data.DataService component implementation class = org.eclipse.kura.core.data.DataServiceImpl located in bundle with symbolic name = org.eclipse.kura.core bundle location = initial@reference:file:../../kura/kura/plugins/org.eclipse.kura.core_1.0.11-SNAPSHOT.jar

!ENTRY org.eclipse.kura.core.cloud 2 0 2017-03-14 13:21:34.098 !MESSAGE [SCR] ComponentReference.unbind(): component instance not bound! It is: org.eclipse.equinox.internal.ds.impl.ComponentInstanceImpl@948dc1 Details: Problematic reference = Reference[name = DataService, interface = org.eclipse.kura.data.DataService, policy = static, cardinality = 1..1, target = null, bind = setDataService, unbind = unsetDataService] of service component = org.eclipse.kura.cloud.CloudService component implementation class = org.eclipse.kura.core.cloud.CloudServiceImpl located in bundle with symbolic name = org.eclipse.kura.core.cloud bundle location = initial@reference:file:../../kura/kura/plugins/org.eclipse.kura.core.cloud_1.1.0-SNAPSHOT.jar`

ctron commented 7 years ago

Are you sure this is an Equinox bug? What would the bug report towards Equinox look like?

cdealti commented 6 years ago

Closing as it is not causing any harm.