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
{{ message }}
This repository was archived by the owner on Aug 4, 2022. It is now read-only.
During WES full sync package application in a scale unit, the environment can get into a InventDim change tracking deadlock (undetectable by SQL).
It does not help that InventDim table has lock escalation disabled - this locking apparently occurs on some change tracking details system(?) tables.
The issue seems to occur at around 20,000 added InventDim row's during the package application (I'm guessing SQL decides to try and take a full table lock on InventDim's change tracking table).
A mitigation for this issue is to run the following SQL before WES full sync package starts applying on scale unit:
ALTERTABLE InventDim DISABLE CHANGE_TRACKING;
Then, after WES is applied on the scale unit, run:
ALTERTABLE InventDim ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED =ON);