Deadlock issue.
arungk
Posts: 10 New member
. We are getting an exception when running the substitution rule and getting deadlock issue.This happens mainly running with ore than 1 workers.Can anyone help on this please ASAP.
Tagged:
Best Answer
-
PlantBasedSQL Posts: 187 Gold 4Good afternoon @arungk thank you for your post.
The deadlock is likely because you have more than one rule in a rule block running against the same table. More about ensuring you set up appropriate dependencies to avoid deadlocks can be found here: https://www.red-gate.com/hub/university/sql-provision/masking-rules-and-concepts/rule-blocks-dependencies
and more on speeding up substitution rules and improving concurrency can be found here: https://www.red-gate.com/hub/university/sql-provision/performance-enhancement-with-data-masker/
Please let me know how you get on and if there's anything further I can do to help - thank you very much!
Answers
The error i found is between the rules in RangeSplitter ,which causing the deadlock to happen.I am not able to edit the RangeSplitter to arrange the rules.Can you please tell me how to avoid deadlock in rules in splitrule.
If you are having deadlocks between range splitter rules then potentially there must be some overlap between them or the ranges have not been specified correctly.
Have you checked that the range splitter has been defined correctly and that the rules don't cross-over when it comes to the range values?
Also if you would like me to take a further, more in-depth look at this, please feel free to send your .dmsmaskset Masking Set (which doesn't contain any sensitive data, it is just the XML config file) and, if possible, the logs from the deadlocking run, and I will investigate this further.
My email is: chris.unwin@red-gate.com
Thank you very much - have a great weekend.