CloudFlare Was Hit By Leap Second, Causing Its RRDNS Software To 'Panic' (silicon.co.uk)
Reader Mickeycaskill writes: The extra leap second added on to the end of 2016 may not have had an effect on most people, but it did catch out a few web companies who failed to factor it in. Web services and security firm CloudFlare was one such example. A small number of its servers went down at midnight UTC on New Year's Day due to an error in its RRDNS software, a domain name service (DNS) proxy that was written to help scale CloudFlare's DNS infrastructure, which limited web access for some of its customers. As CloudFlare explained, a number went negative in the software when it should have been zero, causing RRDNS to "panic" and affect the DNS resolutions to some websites. The issue was confirmed by the company's engineers at 00:34 UTC on New Year's Day and the fix -- which involved patching the clock source to ensure it normalises if time ever skips backwards -- was rolled out to the majority of the affected data centres by 02:50 UTC. Cloudflare said the outage only hit customers who use CNAME DNS records with its service. Google works around leap seconds with a so-called "smearing" technique -- running clocks slightly slower than usual on its Network Time Protocol servers.
The blog post about this incident says:
and then later it says:
So to me it sounds like this incident was at least partially due to limitations with the Go programming language and its libraries.
Would this incident still have happened if this software were written in the Rust programming language?
I still wonder how these simple edge cases make their way in
I want action CloudFlare or I'm suing!!!
...at exactly midnight, while I was playing Chivalry. I kept getting laggier... and laggier... and then everyone "froze" and the client-side prediction took over. I was recording video and it was pretty funny. Everyone just kept walking forward, until they were in a wall, and kept trying to walk forwards.
It was interesting what the client prediction would let you do. You could change weapons. You could swing your weapon. You could throw axes (of which you have two) and they flew through the air, stuck in people, and even knocked helmets off. BUT, your axe counter never actually decreased. So you could just keep throwing hundreds of axes. The animation timings / speeds were unaffected. You couldn't "chant" or grunt. You obviously couldn't damage anyone.
Anyway, my internet was down until the next morning and even then, it still required a cable modem reset to fix the connection.
2016 says "Hi, remember me, beeotches?!!"
the preceding comment is my own and in no way reflects the opinion of the Joint Chiefs of Staff
May have also contributed.
Would explain why only some sites affected.
Not RFC compliant.
We lose or gain a second here or there, who cares? The difference has been so far 27 seconds over the past 44 years or, extrapolated out, 1 MINUTE over 97 YEARS.
Are we really going to notice if the sun goes down a minute earlier every century? We already have to screw around with daylight savings & leap years why not just make February the 29th 24 hours and 1 minute long once a century and have done with it.
I always remember time changes as busy nights in support when I worked for a large bank. The spring forward was usually a breeze, just a matter of a lot of server verifications and log checks, but the fall back was usually a messy night. Much harder to deal with and resolve issues involving duplicate timed log entries and transaction logs. I don't really miss those days...
errr....umm...*whooosh* *whoosh* Is this thing on ?
Who the hell cares what time it is? Nice for a reference, but nothing should be so dependent upon the clock that it ceases to function properly. Geez. I know there are millions of examples of why time dependence is important (like stock market transactions), but that's the whole problem, this should not be the case. Stop building the house of cards.
Don't use services who names are terribly ironic in times of failure.
Flare, Flame, Burn, Drop, Etc. Et.
The universe just loves to throw a wrench at such forms of un-intentional hubris just for the LOLs.
"There is more worth loving than we have strength to love." - Brian Jay Stanley
>RRDNS is written in Go
Their bugs are in HR department.
Who in the world hired people who are dumb enought to use an experimental language in production?
Could also be a financial consideration. The smart folks wanted too much money. Or, maybe an unpaid summer high school intern was the choice.
In a time of universal deceit, telling the truth is a revolutionary act. George Orwell
" people who are dumb enought to use an experimental language"
Not sure they have nailed it down yet.
Why are they using upstream time values
and not running NTP?
https://www.google.com/amp/blog.cloudflare.com/how-and-why-the-leap-second-affected-cloudflare-dns/amp/?espv=1
The code takes the upstream time values and feeds them to Goâ(TM)s rand.Int63n() function. rand.Int63n promptly panics if its argument is negative. That's where the RRDNS panics were coming from.
The root cause of these leap second problems is the absolutely brain dead way Unix time deals with leap seconds. The clock design is broken. What Unix should've done is to keep a running count of seconds elapsed since Jan 1, 1970 and maintained a file containing historical moments when leap seconds were defined. Unix time could be converted to UTC using this file -and- the reverse conversion could be done as well. Effectively, Unix time would be monotonically increasing and equivalent to TAI or GPS time with an integer seconds offset. Simple. Exact.
The issue with leap seconds is much bigger than just Cloudflare. I’ve found there are difference in at least 4 types of time: Google Time (their unique version of NTP time protocol), International Atomic Time(TAI), Coordinated Universal Time (UTC), and multiple NTP protocol servers. Currently there is a difference of 37 seconds between International Atomic Time (TAI) and Coordinated Universal Time (UTC). https://www.timeanddate.com/ti... When I checked the time sync of time.windows.com to time.is I noticed there is a ~33.4 second difference. Last I checked, there are hundreds of NTP severs that have out of sync times https://community.ntppool.org/ It seems a significant amount of the world is out of sync and there is no absolute consensus on what the time should be.
At what point is a programming language no longer "experimental"?
Go was first announced over 7 years ago, back in 2009, and it was being worked on well before then. It has been created by some very experienced industry veterans working at one of the most successful software and technology organizations ever to have existed. Compared to many other languages, Go and its standard library have been quite stable for years now.
Languages like Java, C++, C# and Perl were all being used for production systems well within 7 years of becoming publicly available. They've all seen significant changes since being released, far more than Go has experienced. So when did they stop becoming "experimental"?
Stop spamming your nefarious software!
You're banned from Slashdot for a reason.
You have singlehandedly made them tweak the lameness filter to the point we can't even do long insightful posts anymore, you are ruining Slashdot every time you post!
See subject: Why can I post then you illogic logic DOLT? Guess you ran outta "downmodpoints" now spewing bs unidentifiably instead? LMAO @ U!
* "All whipslash's troll horses & ALL his sockpuppet fake account men, can't stop APK from posting, AGAIN, & again..." & HE is the punk doing the mess, not I. Blame the "trustfund baby" source, not I.
Plus, facts - /.'er LIKE & USE my work (do they yours, unidentifiable unskilled DWEEB? No):
See here https://slashdot.org/comments.pl?sid=10053471&cid=53585643/ & here https://slashdot.org/comments.pl?sid=10053471&cid=53585667/ & Malwarebytes hosts + recommends it (I could have NO higher honor).
APK
P.S.=> Powerless whimps like you aren't capable of insight (or quality work) - I am & I truly DO "get off" on watching you blow all your effete useless 'downmodpoints' in some vain effort to stop me & seeing you FAIL (lol) as always - you have NO skills... apk
Do not trust APK's software, APK is a criminal , he is blatantly violating the Computer Fraud and Abuse Act by posting here as he is banned from Slashdot.
APK's ban evasion has lead to more restrictive filters being placed on Slashdot that hinder good discussions.
Change is certain; progress is not obligatory.
Stop with your criminal spam. You are violating the Computer Fraud and Abuse Act.
Change is certain; progress is not obligatory.
See subject: He never has & iirc he said it's ok for me to post (iirc, I have it quoted + bookmarked) - but IF he asked nicely, KNEELING DOWN vs. my UNSTOPPABLE power (lol)?
Then, I would leave as I learn zero from goofs like you, lol! It would be enough to make a tin-plated little dictator wannabe God kneel... lmao!
* This site's served MOST of its purpose to me anyhow - 1st I used those here to "make objections" I overcome w/ ease (nice thing about fellow techies is almost like 'all those eyes' on "OpenSORES" - they MIGHT spot something I overlooked (haven't yet, lol)).
2nd'ly? It's truly been FUN showing your "lord & master" + his crony sycophant sockpuppets galore/multiple identities trolls (yes, I KNOW you have them - lol, in fact, you'd be SURPRISED how much I know who is who & what-not but more importantly, HOW I know it, lol) are weak.
E.G. - When you can't prove my points validly technically wrong? You downmod. When I beat you mano-a-mano, you use undentifiable ac posts. When you run dry of modpoints (always) then you stalk me by unidentifiable ac posts (like you're doing now) - playing either (lol) "jailhouse lawyer" as you are now OR calling me 'crazy' etc. ala "Dr. Quack - 'SiDeWaLk-ShRiNk of /.' - BOTH are indicative of your DELUSIONS of GRANDEUR, lmao!
APK
P.S.=> Don't give me orders unindentifiable cowardly PUNY dolt - you are BENEATH me & totally wrong as usual too (never been asked to leave but that's what the "powers that be" DO when they're helpless, lol - look @ breitbart, Alex E. Jones, etc. as further proof thereof to THAT very effect)... apk
See subject: From his new book "Why I'm so great" You wish you were me & why can I run rings around your asses?
Alicia Keys says it best (it's where I am from, superior people): https://www.youtube.com/watch?feature=player_detailpage&v=z5LOE_5icNA#t=202/
"Welcome to NY: Concrete jungle where DREAMS are made of... there's NOTHING U CAN'T DO! Count on NY... yea!"
* Bottom-line: You don't own this place - all the owner here has to do, is ask nicely, & I am gone. Yes, it's THAT simple... or is it? Pride is a terrible thing isn't it.
APK
P.S.=> Unidentifiable ac, lastly? Go FUCK yourself - alright motherfucker? You're nobody & NOTHING to me (get whipslash in here to ask me to go, I am gone (he has to KNEEL proving he's helpless technically, lol!))... apk
Stupid programmers doing real work. It is not the language but the idiot coder.
This happens so regularly that it must be the same guy moving from job to job. Zunes not knowing the number of days in leap year.
Glad I work on real machines. Last error we had like this was how slow the carry between hardware clock and date ref. Day a 23:59:59, day a 24:00:00, day a 00:00:00, day b 00:00:00.
This is so 1980.
HR shouldn't be making hiring decisions for anyone. They Should at most be making suggestions based on preliminary criteria set by their to-be bosses. The one to blame here is most likely the boss who gave the greenlight fro using something like Go.
What worries me, though, is that the trend of using experimental programming languages and technologies in production environments is growing fast. It's perfectly fine using new and even experimental languages to write non-business-critical parts of a system, but for god's sake, don't make your whole infrastructure rely on something as stupid as Go. Write critical parts as C modules, or anything else that has a long track record.
Go is experimental by which definition?
Also, this is not a language bug, it's a problem with incorrect use of library code, and that can happen in any language that supports libraries in any form.
Blaming the Language is like blaming a toaster for shocking someone in the bath because they felt a wee bit on the hungry side.
Tools, just like features in languages, should not be made idiot proof.
A warning is fine. In this case, someone clearly never checked the spec or put in their own check just for leap seconds. Doesn't need to be in the code forever, just that event then comment-out and recompile.
Putting these checks in by default would add extra overhead. One extra check adds up even after a day. That's extra money down the line because some idiot wanted toast in a bath.
A conservative programming language in a version numbered as 1.7 hardly fits any sane person's definition of "experimental".
Ezekiel 23:20
And if you want an accurate timepiece, you should accept leap seconds, and even double leap (you CAN get 61 seconds as a valid return) in your code.
Personally, I've never needed tolerances in weight of microgrammes, but that doesn't mean we can do without them. The USA doesn't need to use imperial measures, but that isn't sufficient reason to drop them. Many things aren't useful, or of noteworthy difference, to ordinary people, but that doesn't mean we can ignore the differences.
Stop with your criminal spam, please. You are violating the Computer Fraud and Abuse Act, as you are well aware, so not only are you doing it, you are doing it wilfully.
Stop involving us in your crimes APK. You are violating the Computer Fraud and Abuse Act.
Change is certain; progress is not obligatory.
See subject as his hosts addons fail via using admin/root privelege (dangerous security risk) https://ask.slashdot.org/comments.pl?sid=10024927&threshold=-1&commentsort=0&mode=thread&pid=53533799/ & he's "ALL OUT OF ACES" trying to play "jailhouse lawyer" now in desperation which I shot down easily too https://tech.slashdot.org/comments.pl?sid=10073651&cid=53605283/ & yes we know it's you now "AssFox" asshole stalker since you forgot to use your "registered 'luser'" account here https://tech.slashdot.org/comments.pl?sid=10073651&cid=53601511/ but did unidentifiable anonymous posts here instead before that last link like the one I am responding to, adding "criminal impersonation" to it (Robert DeLong) https://tech.slashdot.org/comments.pl?sid=10073651&cid=53601715/ loony bird FAILURE that you clearly are!
APK
P.S.=> Still "stinging" after the 1st link above eh? Too bad you made it just "too, Too, TOO EASY - just '2ez'" to scorch your dumb ass in HUGE error using ADMIN/ROOT PRIVELEGE ON A BROWSER (stupid security risk) ... apk
See subject as as hosts addons fail via using admin/root privelege (dangerous security risk) https://ask.slashdot.org/comments.pl?sid=10024927&threshold=-1&commentsort=0&mode=thread&pid=53533799/ & he's "ALL OUT OF ACES" trying to play "jailhouse lawyer" now in desperation which I shot down easily too https://tech.slashdot.org/comments.pl?sid=10073651&cid=53605283/!
&
Yes we know it's you now "AssFox" asshole stalker since you forgot to use your "registered 'luser'" account here https://tech.slashdot.org/comments.pl?sid=10073651&cid=53601511/ YET you did unidentifiable anonymous posts here instead before that last link like the one I am responding to, adding "criminal impersonation" to it (Robert DeLong) to your known stalking me online https://tech.slashdot.org/comments.pl?sid=10073651&cid=53601715/ loony bird FAILURE that you clearly are!
APK
P.S.=> Still "stinging" after the 1st link above eh? Too bad you made it just "too, Too, TOO EASY - just '2ez'" to scorch your dumb ass in HUGE error using ADMIN/ROOT PRIVELEGE ON A BROWSER (stupid security risk) ... apk
his hosts program is actually pretty good by xenotransplant
his hosts tool is actually useful for those cases in which one does indeed want to locally block stuff outright while consuming minimum system resources by alexgieg
I've never tried to belittle (APK's) work, I've flat out said it's good by BronsCon
take a look at the APK hosts file engine by SuperKendall
APK is kinda right. I've tried his hosts file generating software. It works by bmo
APK is totally right on this count. Adblock Plus on Firefox mobile is a dog on older, or lower end, phones. A hostfile based adblocker makes for a much better experience by chihowa
I like your host file system by Karmashock
I find your hosts file admirable by vel-ex-tech
* My code's liked/used + recommended & hosted by Malwarebytes' hpHosts - Argue w/ those folks above.
APK
P.S.=> See subject & those quoted /.'ers outnumbering you praising my work - more coming in part 2... apk
"If Engineers built buildings the way Programmers write programs, the first woodpecker that came along would destroy civilization!"
And if you did it that way because your "pointy-haired boss" said to, then it is still your fault... ;-)
I support APK's stand on the hosts file by Trax3001BBS
Your premise that hostfiles are a good way to deal with advertising and malvertising is quite valid by JazzLad
No complaints from me, I like APK... Reminds me to use a host file. Also, his stuff is free by aaaaaaargh!
APK's monolithic hosts file is looking pretty good by Culture20
APK... Awesome to see he's still spreading the good word by Molochi
ABP is insufficient as a solid hosts file does everything that APK reminds us about by fast turtle
APK isn't wrong by cfalcon
APK, I know people give you a lot of shit regarding hosts, but please don't ever stop by nasredin
You need APK's hosts file by Teun
APK solution STILL relevant by Thud457
you're right about hosts files by drinkypoo
APK
P.S.=> They're in addition to https://tech.slashdot.org/comments.pl?sid=10073651&cid=53606071/ many more earlier so "EAT YOUR WORDS", AssFox... apk
See subject as as his hosts addons fail via using admin/root privelege (dangerous security risk) https://ask.slashdot.org/comments.pl?sid=10024927&threshold=-1&commentsort=0&mode=thread&pid=53533799/ & he's "ALL OUT OF ACES" trying to play "jailhouse lawyer" now in desperation which I shot down easily too https://tech.slashdot.org/comments.pl?sid=10073651&cid=53605283/!
&
Yes we know it's you now "AssFox" asshole stalker since you forgot to use your "registered 'luser'" account here https://tech.slashdot.org/comments.pl?sid=10073651&cid=53601511/ YET you did unidentifiable anonymous posts here instead before that last link like the one I am responding to, adding "criminal impersonation" to it (Robert DeLong) to your known stalking me online https://tech.slashdot.org/comments.pl?sid=10073651&cid=53601715/ loony bird FAILURE that you clearly are!
APK
P.S.=> Still "stinging" after the 1st link above eh? Too bad you made it just "too, Too, TOO EASY - just '2ez'" to scorch your dumb ass in HUGE error using ADMIN/ROOT PRIVELEGE ON A BROWSER (stupid security risk) ... apk
APK is a criminal, he is blatantly violating the Computer Fraud and Abuse Act by posting here as he is banned from Slashdot.
APK's ban evasion has lead to more restrictive filters being placed on Slashdot that hinder good discussions all for the sake of his spam.
Just look how many spam post he's made to this article alone!
Respectfully, stop involving me and others in your criminal activities. You're ruining Slashdot with your illegal spam posts and illegal comments.
Change is certain; progress is not obligatory.
See subject: How so? Easy (too easy) https://tech.slashdot.org/comments.pl?sid=10073651&cid=53606211/
APK
P.S.=> You did that to yourself imbecile... apk
See subject: You keep doing this to yourself (I think you LIKE it) https://tech.slashdot.org/comments.pl?sid=10073651&cid=53606211/
APK
P.S.=> You did it to yourself, get over it... apk
See subject: No denying you do https://tech.slashdot.org/comments.pl?sid=2024512&cid=35403488/
https://tech.slashdot.org/comments.pl?sid=3153677&cid=41509383/
https://linux.slashdot.org/comments.pl?sid=3110069&cid=41310703/
https://it.slashdot.org/comments.pl?sid=3132237&cid=41402837/
https://yro.slashdot.org/comments.pl?sid=3149609&cid=41488037/
https://slashdot.org/comments.pl?sid=3929071&threshold=-1&commentsort=0&mode=thread&pid=44175653/
https://yro.slashdot.org/comments.pl?sid=4127345&cid=44676119/
https://news.slashdot.org/comments.pl?sid=3929071&cid=44175653/
https://tech.slashdot.org/comments.pl?sid=5111247&cid=46903077/
https://slashdot.org/comments.pl?sid=5538231&cid=47694971/
https://yro.slashdot.org/comments.pl?sid=5572203&cid=47739407/
https://yro.slashdot.org/comments.pl?sid=6895585&cid=48975515/
https://ask.slashdot.org/comments.pl?sid=6999567&cid=49105879/
https://yro.slashdot.org/comments.pl?sid=7517371&cid=49865707/
https://tech.slashdot.org/comments.pl?sid=7580903&cid=49957601/
https://slashdot.org/comments.pl?sid=8667099&cid=51378337/
https://slashdot.org/comments.pl?sid=8667099&cid=51378993/
https://it.slashdot.org/comments.pl?sid=9380571&cid=52510101/
https://slashdot.org/comments.pl?sid=9986237&cid=53472979/
https://news.slashdot.org/comments.pl?sid=9962449&cid=53438541/
https://slashdot.org/comments.pl?sid=9986237&cid=53472979/
https://ask.slashdot.org/comments.pl?sid=10024927&cid=53533799/
APK
P.S.=> ... & you FAIL badly when you do https://ask.slashdot.org/comments.pl?sid=10024927&threshold=-1&commentsort=0&mode=thread&pid=53533799/ ... apk
See NEW APK Hosts File Engine 9.0++ SR-5 32/64-bit https://www.google.com/search?...
Ads rob speed, security (malvertising) & privacy (tracking).
Hosts add speed (hardcodes/adblocks), security (bad sites/poisoned dns), reliability (dns down), & anonymity (dns requestlogs/trackers) natively.
Works vs. caps & PUSH ads.
Avg. page = big as Doom http://www.theregister.co.uk/2... & ads = 40% of it.
Hosts != ClarityRay blockable (vs. souled-out to admen inferior wasteful redundant slow usermode addons)
Less power/cpu/ram + IO use vs. DNS/routers/addons/antivirus (slows you) + less security issues/complexity.
Compliments firewalls (blocking less used IP addys vs. hosts blocking more used domains) & DNS (lightens dns load).
Gets data via 10 security sites.
APK
P.S. - Safe https://www.virustotal.com/en/... (Verified by Malwarebytes' S. Burn "seen the code & it's safe" http://forum.hosts-file.net/vi... )
Hosts work on topic here vs. this as a solution troll - you're off topic stalking me https://tech.slashdot.org/comments.pl?sid=10073651&cid=53610991/ + out of aces https://ask.slashdot.org/comments.pl?sid=10024927&threshold=-1&commentsort=0&mode=thread&pid=53533417/ after you FAILED again technically vs. me.
* Apparently I've RUN YOU DRY of "downmodpoints" you issue by sockpuppets you keep (the province of FAKE NAMES for FAKE LIVES types w/ zero accomplishments of note, lol).
I'm laughing @ YOU AssFux & so is all of /. ... guaranteed!
APK
P.S.=> You don't own /. issuing threats you don't have power to enforce - get whipslashd to come and tell me publicly to stop posting here & I will (it will take him kneeling as I'm not banned)... apk
Drained of your ineffective down mod points https://tech.slashdot.org/comm... and proven to be "count stalkula" hahaha too https://slashdot.org/comments.... has not turned out to be a good combination for you Ash-Fox!
Sign of the cross + "Back, count stalkula: https://tech.slashdot.org/comments.pl?sid=10073651&cid=53610991/ - BACK!" hahaha R o T f L m A o...