History log of /trafficserver/proxy/http/remap/unit-tests/test_RemapPlugin.cc (Results 1 - 4 of 4)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 78c7c0c0 27-Sep-2019 Gancho Tenev

"Plugin (un)used" post reload notification

Most of the plugins is assumed to use per-plugin-instance data-structures
when reloading their configs and only a few of them that wish to opti

"Plugin (un)used" post reload notification

Most of the plugins is assumed to use per-plugin-instance data-structures
when reloading their configs and only a few of them that wish to optimize
performance or deal with the complexities of using per-plugin DSO "global"
data-structures would use plugin configuration reload notifications like
`TSRemapPreConfigReload` and `TSRemapPostConfigReload`.

Instead of trying to foresee the needs or the expectations of each use-case,
a more "open-ended" and straight-forward design was chosen for the configuration
reload notifications. The notifications are broadcasted to all loaded plugins
at the moments before and after the reload attempt, regardless of whether
a plugin is part of the new configuration or not.

During the `TSRemapPostConfigReload` we already decided to notify the
plugin if the plugin reload was successful or not so the plugins can
recover adequately in case of configuration reload failure.

This change adds a signal to show if the particular plugin was part of
the new configuration. This will be beneficial for use-cases that expect
plugin reload notification not to be called in case they are not part of
the new configuration so they can ignore the notification.

This change also attempts to clarify related documentation and code
comments as well.

show more ...


# 70de21d9 03-Sep-2019 Gancho Tenev

Rearrange config reload notifications

Renamed `TSRemapConfigReload` to `TSRemapPreConfigReload` to notify
all already loaded plugins that a configuration (re)load is about to
start.

Rearrange config reload notifications

Renamed `TSRemapConfigReload` to `TSRemapPreConfigReload` to notify
all already loaded plugins that a configuration (re)load is about to
start.

Added new `TSRemapPostConfigReload(TSReturnCode)` to notify the plugins
that the configuration (re)load is done and provide status of its
success or failure.

show more ...


Revision tags: 8.0.5, 7.1.8, 8.0.4, 7.1.7
# f0cbc11e 12-Aug-2019 Gancho Tenev

make check race condition fix

Avoid race conditions when creating unique temporary
unit-test sandbox directory by using mkdtemp().


Revision tags: 7.1.7-rc0, 8.0.4-rc0, 8.0.3
# 1eca389c 01-Mar-2019 Gancho Tenev

Plugin reload

Reloading plugin allows new versions of a plugin code to be loaded
and executed and old versions to be unloaded without restarting
the traffic server process.

Plugin reload

Reloading plugin allows new versions of a plugin code to be loaded
and executed and old versions to be unloaded without restarting
the traffic server process.

More info in doc/developer-guide/plugins/reloading-plugins.en.rst

show more ...