How do you approach intermittent bugs? [closed]

Bugs that are hard to reproduce are the hardest one to solve. What you need to make sure that you have found the root of the problem, even if the problem itself cannot be reproduced successfully.

The most common intermittent bugs are caused by race-conditions – by eliminating the race, or ensuring that one side always wins you have eliminated the root of the problem even if you can’t successfully confirm it by testing the results. The only thing you can test is that the cause does need repeat itself.

Sometimes fixing what is seen as the root indeed solves a problem but not the right one – there is no avoiding it. The best way to avoid intermittent bugs is be careful and methodical with the system design and architecture.

Leave a Comment