Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 502 errors #2

Merged
merged 1 commit into from
May 26, 2022
Merged

Fix 502 errors #2

merged 1 commit into from
May 26, 2022

Conversation

kdbhiggins
Copy link

@kdbhiggins kdbhiggins commented May 26, 2022

Gateway 502 errors have been causing a lot of incidents, particularly with the brand-transactions data-plane. This is issue has been reported on the main fork lyft#166, seems to manifest with concurrent requests.

I think it's caused by initialising the MVELRuleFactory once, but then loading the rules into it per request (potentially across different threads). I'm changing the code here to load the rules config once, not per request. This means that you'll have to restart the server to change the rules, but IMO that is the expected behaviour for config files, not hot reloading.

@kdbhiggins kdbhiggins marked this pull request as ready for review May 26, 2022 13:47
Copy link

@terry-sm terry-sm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks.

@kdbhiggins kdbhiggins merged commit cce04c5 into master May 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants