This repository has been archived by the owner on Nov 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 294
Subscription movement to new plugin version fails. #824
Comments
IRCody
added a commit
to IRCody/snap
that referenced
this issue
Mar 31, 2016
Added a check in availablePlugins.collectMetrics for a nil strategy that was causing a panic when metric subscriptions were in the process of being moved. Modified the handling of load/unload plugin events to properly handle moving subscriptions between differing versions of a plugin that provides the same metrics and added tests for this behavior in control/control_test.go.
IRCody
added a commit
to IRCody/snap
that referenced
this issue
Mar 31, 2016
Added a check in availablePlugins.collectMetrics for a nil strategy that was causing a panic when metric subscriptions were in the process of being moved. Modified the handling of load/unload plugin events to properly handle moving subscriptions between differing versions of a plugin that provides the same metrics and added tests for this behavior in control/control_test.go.
IRCody
added a commit
to IRCody/snap
that referenced
this issue
Mar 31, 2016
Added a check in availablePlugins.collectMetrics for a nil strategy that was causing a panic when metric subscriptions were in the process of being moved. Modified the handling of load/unload plugin events to properly handle moving subscriptions between differing versions of a plugin that provides the same metrics and added tests for this behavior in control/control_test.go.
IRCody
added a commit
to IRCody/snap
that referenced
this issue
Mar 31, 2016
Added a check in availablePlugins.collectMetrics for a nil strategy that was causing a panic when metric subscriptions were in the process of being moved. Modified the handling of load/unload plugin events to properly handle moving subscriptions between differing versions of a plugin that provides the same metrics and added tests for this behavior in control/control_test.go.
IRCody
added a commit
to IRCody/snap
that referenced
this issue
Apr 4, 2016
Added a check in availablePlugins.collectMetrics for a nil strategy that was causing a panic when metric subscriptions were in the process of being moved. Modified the handling of load/unload plugin events to properly handle moving subscriptions between differing versions of a plugin that provides the same metrics and added tests for this behavior in control/control_test.go.
IRCody
added a commit
to IRCody/snap
that referenced
this issue
Apr 4, 2016
Added a check in availablePlugins.collectMetrics for a nil strategy that was causing a panic when metric subscriptions were in the process of being moved. Modified the handling of load/unload plugin events to properly handle moving subscriptions between differing versions of a plugin that provides the same metrics and added tests for this behavior in control/control_test.go.
IRCody
added a commit
to IRCody/snap
that referenced
this issue
Apr 4, 2016
Added a check in availablePlugins.collectMetrics for a nil strategy that was causing a panic when metric subscriptions were in the process of being moved. Modified the handling of load/unload plugin events to properly handle moving subscriptions between differing versions of a plugin that provides the same metrics and added tests for this behavior in control/control_test.go.
IRCody
added a commit
to IRCody/snap
that referenced
this issue
Apr 5, 2016
Added a check in availablePlugins.collectMetrics for a nil strategy that was causing a panic when metric subscriptions were in the process of being moved. Modified the handling of load/unload plugin events to properly handle moving subscriptions between differing versions of a plugin that provides the same metrics and added tests for this behavior in control/control_test.go.
IRCody
added a commit
to IRCody/snap
that referenced
this issue
Apr 5, 2016
Added a check in availablePlugins.collectMetrics for a nil strategy that was causing a panic when metric subscriptions were in the process of being moved. Modified the handling of load/unload plugin events to properly handle moving subscriptions between differing versions of a plugin that provides the same metrics and added tests for this behavior in control/control_test.go.
IRCody
added a commit
to IRCody/snap
that referenced
this issue
Apr 5, 2016
Added a check in availablePlugins.collectMetrics for a nil strategy that was causing a panic when metric subscriptions were in the process of being moved. Modified the handling of load/unload plugin events to properly handle moving subscriptions between differing versions of a plugin that provides the same metrics and added tests for this behavior in control/control_test.go.
IRCody
changed the title
metric rollover to new plugin version problem
Subscription movement to new plugin version fails.
Apr 6, 2016
jcooklin
pushed a commit
to jcooklin/snap
that referenced
this issue
Apr 6, 2016
Added a check in availablePlugins.collectMetrics for a nil strategy that was causing a panic when metric subscriptions were in the process of being moved. Modified the handling of load/unload plugin events to properly handle moving subscriptions between differing versions of a plugin that provides the same metrics and added tests for this behavior in control/control_test.go.
IRCody
added a commit
to IRCody/snap
that referenced
this issue
Apr 6, 2016
Added a check in availablePlugins.collectMetrics for a nil strategy that was causing a panic when metric subscriptions were in the process of being moved. Modified the handling of load/unload plugin events to properly handle moving subscriptions between differing versions of a plugin that provides the same metrics and added tests for this behavior in control/control_test.go.
IRCody
added a commit
to IRCody/snap
that referenced
this issue
Apr 6, 2016
Added a check in availablePlugins.collectMetrics for a nil strategy that was causing a panic when metric subscriptions were in the process of being moved. Modified the handling of load/unload plugin events to properly handle moving subscriptions between differing versions of a plugin that provides the same metrics and added tests for this behavior in control/control_test.go.
IRCody
added a commit
to IRCody/snap
that referenced
this issue
Apr 6, 2016
Added a check in availablePlugins.collectMetrics for a nil strategy that was causing a panic when metric subscriptions were in the process of being moved. Modified the handling of load/unload plugin events to properly handle moving subscriptions between differing versions of a plugin that provides the same metrics and added tests for this behavior in control/control_test.go.
IRCody
added a commit
that referenced
this issue
Apr 7, 2016
Added a check in availablePlugins.collectMetrics for a nil strategy that was causing a panic when metric subscriptions were in the process of being moved. Modified the handling of load/unload plugin events to properly handle moving subscriptions between differing versions of a plugin that provides the same metrics and added tests for this behavior in control/control_test.go.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Steps to reproduce:
snapd -t 0 -l 1
snapctl plugin load path/to/collector/mock/1
You can do a task watch/list to verify the task is working.
It seems to be panicking here because pool is nil. RoutingAndCaching is embedded inside Pool and is what actually implements CheckCache. I think the issue is that when the newPool is created for the new plugin it's RoutingAndCaching strategy is not set. There is also a related issue when going from a newer version of a plugin to an older version that causes the task to fail.
The text was updated successfully, but these errors were encountered: