Equip/s:
Tipus:
Website bug
Estat:
Resolved
Prioritat:
Normal
Descripció:
Hi Jordi,
wanted to change the status for a recycled laptop. But I was not able to update the dootronic entry, as it exists twice (error "The alias is already in use.". You are only able to see it starting here https://www.labdoo.org/de/content/dootronics-dashboard and filter for "10107". Then you will see that 2 laptops have the same ID.
Zürich: not possible to enter to edit
Rhein-Ruhr: https://www.labdoo.org/node/40442/edit
Labdoo ID Status Hub Edoovillage Country
1 ...(not interesting)
2 000010107 S2 Labdoo Hub Zürich (Schweiz) Switzerland
3 000010107 S1 Labdoo Hub Rhein-Ruhr Germany
You may delete the hub Rhein-Ruhr entry and keep Franks, as mine was recycled anyway.
No idea, how this was possible.
Thanks, Ralf
Comentaris
Very strange!
This is very strange! Maybe some tagging at the exact same time?
Yeah! that's exactly what
Yeah! that's exactly what happened :)
It took us 10,000 laptops to have the first ever laptop tagging collision, and following the law of large numbers, it happened between the two most active countrires Germany and Switzerland :).
One dootronic was tagged at Fri, 5 May 2017 05:41:52 -0700 (PDT)
The other was tagged at Fri, 5 May 2017 05:41:55 -0700 (PDT)
So just 3 seconds apart. (See attached email screenshots)
There is a very unlikely (but possible with a very small probability, say 1 out of 10000 :) ) racing condition. While rare, this needs a proper fix. Thank you for reporting.
In the meantime, per Ralf indications, i have removed Ralf's version of 000010107.
Good catch and thanks for reporting this!
screenshot_from_2017-05-20_065128.png
screenshot_from_2017-05-20_065119.png
It happens again
Hi Jordi,
It happens again. Please see the attached picture.
When you find time, can you help clone the duplicate one to a different Labdoo ID since they were created by 2 different users, I hope both taggers get to receive laptop status on the laptops they tagged.
Thanks!
11402.png
It just happened to me too
laptot 000012138
i had registered and had the number asigned (000012138)
now i was editing to add info
and got this message about wron alias... and
i see another laptop...i guess we both entered at the same time,
i started all over and got a new number, (000012140)
lbdoo_12138.pdf
Thanks for reporting, this
Thanks for reporting, this was another laptop tagging collision, occurring with Ralf and Elena tagging a laptop at the same time on "Thu, Nov 9, 2017 at 5:56 PM". I am working on a fix to this problem, it's going to take me a few more days to have this fixed, but it's one of the top priorities right now. Thanks.
PS: Elena i have removed the extra laptop, so the database should be clean now.
This is now resolved.
This is now resolved.
For internal records, i have added the next three new functions that help us provide a locking mechanism within Labdoo to protect collisions when multiple objects are created at the same time. These were very unlikely in the past (chances were about 4 every 10,000 laptops, so about 0.04%), but now they should never happen again.
lbd_lock_acquire(), lbd_lock_release(), labdoo_lib_lock_thread()
See: https://github.com/Labdoo/Labdoo/blob/1109b6c85213df72702437b35750924897...
Right now we only use this lock to protect dootronics, dootrips and edoovillages, which are the only objects that require ID numbers.
Commit: https://github.com/Labdoo/Labdoo/commit/1109b6c85213df72702437b357509248...