Ticket #831 (closed Defect: fixed)

Opened 9 years ago

Last modified 9 years ago

Plugin lifecycle error handling

Reported by: jri Owned by: jri
Priority: Major Milestone: Release 4.7
Component: DeepaMehta Standard Distribution Version: 4.6.1
Keywords: Cc: dgf, Malte
Complexity: 3 Area: Application Framework / API
Module: deepamehta-core

Description

When a plugin is redeployed (that is it is stopped and a newer version is started instead) and an error occurs in its stop() hook its static web resources (and possibly other things as well) are not unregistered and thus registering them again (while start) fails as the URI namespace is already in use. This leaves the plugin in an inconsistent state which can only be repaired by restarting the platform.

Change History

comment:1 Changed 9 years ago by jri

  • Status changed from new to accepted

comment:2 Changed 9 years ago by Jörg Richter <jri@…>

In a456b300b9b6e724ce26394b4302e4d31fcc5ae4/deepamehta:

Plugin shutdown() hook error handling (#831).

If an error occurs in a plugin's shutdown() hook the error is logged and stopping the plugin proceeds.

See #831.

comment:3 Changed 9 years ago by jri

  • Status changed from accepted to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.