Commit 62ab504a authored by Jérome Perrin's avatar Jérome Perrin

XXX: use a shorter expand VERTICAL_EXPAND_TIMEOUT

This is to reproduce crashes with mariadb 10.3

I believe that in the live system where we observe the crash we have expand
taking more than 5 seconds, and that if we use a shorter timeout here the crash
happens more often.
parent 3fbd1435
...@@ -52,7 +52,7 @@ TREE_DELIVERED_CACHE_KEY = 'AppliedRule._isTreeDelivered' ...@@ -52,7 +52,7 @@ TREE_DELIVERED_CACHE_KEY = 'AppliedRule._isTreeDelivered'
policy_dict = {} # {None: preferred, 'foo_bar': FooBar} policy_dict = {} # {None: preferred, 'foo_bar': FooBar}
VERTICAL_EXPAND_TIMEOUT = 5 # XXX: hardcoded for the moment VERTICAL_EXPAND_TIMEOUT = .1 # XXX: hardcoded for the moment
class _Policy(object): class _Policy(object):
"""Base class of policies for RuleMixin.expand and SimulationMovement.expand """Base class of policies for RuleMixin.expand and SimulationMovement.expand
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment