presto-main/src/main/java/io/prestosql/sql/planner/optimizations/OptimizerStats.java/OptimizerStats/recordFailure
class OptimizerStats:    public void recordFailure()
    {
        failures.incrementAndGet();
    }