phaistos-networks / TANK

A very high performance distributed log service
Apache License 2.0
938 stars 70 forks source link

Crashes when system time is before Jan 05 2016 08:27:06 #67

Closed krconv closed 5 years ago

krconv commented 5 years ago

We've noticed that TANK will abort when the system time is before 2016. What is the purpose of this check? The system that we are using TANK on doesn't always have access to a centralized clock, so it is possible for it to start at a date far in the past before the time gets corrected.

This seems to be the check that causes the abort, in Switch/timings.h:175

else if (unlikely(tv.tv_sec < 1451982426u))
{
    abort();
}
markpapadakis commented 5 years ago

Oh, that's odd. I think this was left there for sanity check reasons. Please feel free to remove it from there and recompile.