You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug#27492122 SHUTDOWN HANG WHEN FIREWALL HAS MORE THAN 250K RULES
Problem
=======
Deletion of 250k elements from the hash takes very long time.
Analysis
========
Elements are removed from the hash using its synchronization feature, where this
is not required. All elements are removed in two scenarios:
- Firewall shutdown
- set_firewall_mode UDF is called. Exclusive access is guaranteed by the rwlock:
WR_lock lock(&fw_users_lock).
Fix
===
Native destructor hash feature is used, which clears all elements on hash destroy
(lf_hash_destroy). Are elements are destroyed within a second.
Reviewed-by
===========
Kristofer Alvring <[email protected]>
Georgi Kodinov <[email protected]>
Marc Alff <[email protected]>
0 commit comments