mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-19 17:52:45 +02:00
* fix: prevent deadlock for batchinserting usage metrics In client metrics v2 we utilize postgres to count the usage across a few dimentions (featureName, app_name, environment). It turns out that if the UPDATE values are not executed in a predictable order we can end up in a deadlock scenario with postgresql. In this fix we thus sort the metrics on the feature_name, app_name and envrionment, to make sure they always are executed in a predictabel order, and thus avoiding independent inserts colliding in to a deadlock waiting for eachother. * fix: tests cannot assume order |
||
---|---|---|
.. | ||
config | ||
e2e | ||
examples | ||
fixtures |