when does bind calls plugin_destroy ?

Evan Hunt each at isc.org
Tue Nov 29 00:11:52 UTC 2022


On Tue, Nov 29, 2022 at 12:08:30AM +0000, Marcus Kool wrote:
> I see random behavior while I do the same test: start named with unmodified
> config file with 2 views (each a plugin instance), run the same 40+ queries
> and reconfigure.  repeat: a few more queries and reconfigure
> 
> 9.16.1 rarely sees plugin_destroy at first reconfigure, 40% at the second
> reconfigure for the first time, 60% at the third reconfigure for the first
> time.  Thereafter, after each plugin_register there is a plugin_destroy.
> 
> 9.18.9 never seen  plugin_destroy at first reconfigure, may take up to 4
> reconfigures for plugin_destroy being called.  Thereafter, after each
> plugin_register there is a plugin_destroy.

That does seem strange. My only guess is that somethng is holding on to a
reference to the original view after the reconfig, and the view isn't
destroyed until that last reference is released.

-- 
Evan Hunt -- each at isc.org
Internet Systems Consortium, Inc.


More information about the bind-users mailing list