This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Description
I have a small test that limits the max log size to a few MB and then write logs fast:
FLAGS_max_log_size = 5;
for (int i = 0; i < 1024000; i++)
LOG(INFO) << i;
Results in:
COULD NOT CREATE A LOGGINGFILE 20181030-122434.31822!Could not create logging file: File exists
If I increase the max_log_size, I see that the "next file" that is created, is always an integral number of seconds newer... E.g. if the first file is "p1.h1.u1log.INFO.20181030-122434.31822", the next one would be "p1.h1.u1log.INFO.20181030-122435.31822", not something like "...122434.90000".
I.e. whenever a log file is full within 1s, we get this error.