Leap Second Bug Causes Crashes 230
An anonymous reader writes in with a Wired story about the problems caused by the leap second last night. "Reddit, Mozilla, and possibly many other web outfits experienced brief technical problems on Saturday evening, when software underpinning their online operations choked on the “leap second” that was added to the world’s atomic clocks. On Saturday, at midnight Greenwich Mean Time, as June turned into July, the Earth’s official time keepers held their clocks back by a single second in order to keep them in sync with the planet’s daily rotation, and according to reports from across the web, some of the net’s fundamental software platforms — including the Linux operating system and the Java application platform — were unable to cope with the extra second."
Re: (Score:5, Funny)
>hick-up.
The hick up watching the servers when the leap second came was you.
Re:Our Red Hat servers had no issues at all (Score:5, Funny)
Windows?
Re:Our Red Hat servers had no issues at all (Score:5, Funny)
Sorry can't remember the name. It's the one that takes the credit for the work of others.
You must be talking about SCO, but if you're still running CND you should probably upgrade.
Re:FUD? (Score:5, Funny)
You don't need a leap second in order for that to happen. Firefox does that regularly.
Re:What about Windows and Mac? (Score:2, Funny)
"And apparently neither did any desktop Linux systems."
There are desktop Linux systems?
(ducks)
A.
Re:Why now? (Score:5, Funny)
What we should have is what I've described above, time-zero and a counter. And translations from that to localized date time should be handled by a library.
Which, sadly, POSIX doesn't let you have as "UNIX time" [opengroup.org]:
If there were a UN*X API to get a count of seconds since the Epoch (in addition to, or instead of, a call to get "seconds since the Epoch"), and a UN*X API to convert those to UTC and local time labels, that would get what you want. Modulo making it work with NTP, the former could be implemented with less difficulty than a call to get "seconds since the Epoch", and the latter is called "the Olson code complete with the leap seconds database".
However, that would then require some mechanism to allow code to schedule something to happen at a given UTC label; simply calculating the UNIX time for that UTC label, getting the current UNIX time, and scheduling it for then-now seconds in the future is insufficient, as the UNIX time for a given UTC label in the future might change if a leap second is scheduled between then and now. (Note that if you support scheduling something to happen at a given local civil time label would already require correction of that sort to handle DST rule changes.) This would also have to do something if you schedule an event for YYYY-DD-MM 23:59:59 and a negative leap second occurs so that there is no 23:59:59 on YYYY-DD-MM; "something" might be "let somebody know and ask them to correct it" or "do it at 00:00:00 on the next day", perhaps depending on the reason why it's scheduled.
Re:You probably don't do much Java, then (Score:5, Funny)
I can even see a small bump in the power-usage around two o' clock (0:00 GMT).
Leap seconds contribute to global warming. We need to raise this at the next G8 summit.