3 ms·
pg once accidentally made a comment thread circular while fiddling with the live HN backend, and crashed the site. Here's the postmortem: https://news.ycombin
by perihelions 4y ago
pg once accidentally made a comment thread circular while fiddling with the live HN backend, and crashed the site.
Here's the postmortem:
https://news.ycombinator.com/item?id=5239673 https://news.ycombinator.com/item?id=5239673 ("Why HN was down", 2013)
- "But then I decided to just fix it for him by doing some surgery in the repl. Unfortunately I used the wrong id for one of the comments and created a loop in the comment tree; I caused an item to be its own grandchild. After which, when anyone tried to view the thread, the server would try to generate an infinitely long page. The story in question was on the frontpage, so this happened a lot."