Some developer somewhere, probably: "Every UUID is unique, so every UUID +1 is also unique and if assigned to a related item allows me to figure out what the original related UUID was."
You'd think that https://en.wikipedia.org/wiki/Universally_unique_identifier#Uses would include examples of that. (I feel the need to point out that this does not disagree with what you said, and there are sections above this one that talk about the MAC address section and the timestamp section.)
But also, it is still represented as a string of hexadecimal characters which inherently makes it math because all numbers are math.
if you mean examples for it being 128bits of data and not its string representation, the first two use cases kinda cover both
a text file like fstab will (of course) use a string representation, but the data structures like the GPT or the filesystems will store them as 128bits of data, not as a string.
I work on a high volume service. We do about 250k RPS. Someone on a call recently trotted out that "a once-in-a-million bug happens about every four seconds for us." Was a great comment and good framing.
Confidently incorrect corrections are my favorite kind of corrections!
The person you’re replying to is correct. If an event happens 1 in a million times and you get 250k tries a second, it will happen every four seconds on average.
What you’re trying to say is that the odds of it happening at least once within a discrete 4s window is ~63%. This isn’t the scenario being discussed. Over time, it can also happen more than once in any given 4s window, and this balances out to the correct average of once every four seconds.
We had an invalid memory state at work (imbedded devices that are supposed to last 20 years on battery alone). I suggested the possibility of a cosmic ray flipping a bit or two.
Lead firmware engineer: “No, that’s like a one in a million event”
Me: “How many of these do we have in the field?”
PM: “We make about 750k a year and have been for the last 12 years”
That's why you get someone on your QA team with the uncanny ability to trigger such bugs reliably, worked with a guy like that and it was fucking bizarre how he managed to do it without fail.
In my recent efforts to fix a bug, I came across a 2 year old closed mr fixing the bug that was closed because it hadn't happened yet so why change anything? By time I got to it we had clients who were effected by the issue for 200+ days
I have definitely learned in software that any bug that can happen, will happen eventually. So always file the defect for any issue you notice and let the project manager decide if it is important or not. Then is is not your fault, they PM decided to release the software with known issues.
The politics that would happen if we did that!! Lol! Seriously better not to mention it rather than file a bug and have to explain to 3 different layers of management. Then again my software is not life or death by any means! Thank God for that.
If it's a one in a million thing, you already know a way it can happen.
That might be okay if you're willing to accept the consequences of it does, but the idea that's it's fine because it won't is how you get woken up at 3AM.
239
u/JustinR8 26d ago
“It’s one in a million”
Sir, this software controls a plane’s landing gear
139
u/ShadowSlayer1441 26d ago
"This issue only occured because the uuid was prime, really what are the chances of that happening again?"
53
u/Alarmed_Fudge_5706 26d ago
If it can happen, it will happen in prod
48
u/kthxb 26d ago
if you have 100 Req/s, this will happen in ~2.8hrs
44
u/doubleyewdee 26d ago
I work on a high volume service. We do about 250k RPS. Someone on a call recently trotted out that "a once-in-a-million bug happens about every four seconds for us." Was a great comment and good framing.
16
u/secondincomm 26d ago
"Its a one in a million chance"
We do millions of transactions every day...
14
u/zenos_dog 26d ago
Runs one billion times a second….
24
u/coriolis7 26d ago
We had an invalid memory state at work (imbedded devices that are supposed to last 20 years on battery alone). I suggested the possibility of a cosmic ray flipping a bit or two.
Lead firmware engineer: “No, that’s like a one in a million event”
Me: “How many of these do we have in the field?”
PM: “We make about 750k a year and have been for the last 12 years”
Me: “…”
12
u/AccNumber77 26d ago
That's why you get someone on your QA team with the uncanny ability to trigger such bugs reliably, worked with a guy like that and it was fucking bizarre how he managed to do it without fail.
5
u/Shawn11564 26d ago
In my recent efforts to fix a bug, I came across a 2 year old closed mr fixing the bug that was closed because it hadn't happened yet so why change anything? By time I got to it we had clients who were effected by the issue for 200+ days
5
u/ChrisBegeman 26d ago
I have definitely learned in software that any bug that can happen, will happen eventually. So always file the defect for any issue you notice and let the project manager decide if it is important or not. Then is is not your fault, they PM decided to release the software with known issues.
3
u/willow-kitty 26d ago
If it's a one in a million thing, you already know a way it can happen.
That might be okay if you're willing to accept the consequences of it does, but the idea that's it's fine because it won't is how you get woken up at 3AM.
2
u/deadbeef4 26d ago •
Everyone knows a million to one shot comes up nine times out of ten.
2
u/Few_Kitchen_4825 26d ago
No one
The bug at prod:
1
u/Matty_B97 26d ago
One in a million bug meets a million users:
1
u/WeirdTie2290 26d ago
QA: Look. When I configure your software this way. And interfacing system sends this data. Then bad things happen.
Dev: Yeah but this is so unlikely. Nobody configures it like that. And the interfacing system should send correct data.
Prod:
1
u/Majik_Sheff 24d ago
One in a million at a trillion operations/second.