[1] https://blog.mozilla.org/webdev/2010/11/15/avoiding-catastro...
Stack Overflow Outage Postmortem
131–140 of 335 posts
Re: Stack Overflow Outage Postmortem
#132They implemented trim with a regex? Neither Java nor .NET do that. The postmortem here should probably be "why are you reimplementing trim".
Most likely answer: The built-in trim isn't Unicode aware or has buggy behavior when dealing with Unicode.
Re: Stack Overflow Outage Postmortem
#133In the past, I have done Load Balancer status checks against a special /status endpoint. I queried all the connected services (i.e. DB, Redis, etc) with a super fast query (i.e. `SELECT version();`). Monitoring CPU/MEM usage for scaling was separate. Comparing this to checking the home page, what is the best way to setup a health check for your load balancers?
You live and learn.
Re: Stack Overflow Outage Postmortem
#134My rephrasing of their follow-up actions: * "Audit our regular expressions and post validation workflow for any similar issues" * ==> "Not even people who've worked for years on the guts of regex engines can easily predict the runtime of a given regex, but somehow our engineers will be expected to do that". * "Add controls to our load balancer to disable the healthcheck – as we believe everything but the home page wo…
Re: Stack Overflow Outage Postmortem
#135Google cache saved me during these 34 minutes.
Re: Stack Overflow Outage Postmortem
#136Re: Stack Overflow Outage Postmortem
#137Could this has been a deliberate/malicious act? Why else would someone post 20,000 consecutive characters of whitespace on a comment line? Also, the "homepage" of StackOverflow does not show any 'comments' - it is just the top questions? Why was the page loading any comments in the first place?
We don't think it was intentional. Maybe copy and paste, or something an editor did. To clarify the "comment" was not a Stack Overflow comment, but rather a comment in a code block inside a question.
Re: Stack Overflow Outage Postmortem
#138Earlier quoted context omitted.
Well in this case a post contained 20K whitespaces, so I wouldn't jump to the conclusion that it was a mistake rather than intentional.
Yeah, I'm trying to figure out how you even get 20,000 spaces into a Stack Exchange post, and how it would render in your browser.
Re: Stack Overflow Outage Postmortem
#139Pasting that content into hipchat will probably lock up your browser and webview based clients. Beware.
Lesson learned: don't parse user input with a regex.