SqlAppenderImpl resets realativeId counters in case of log saving failure