java 7 uuid bug?
I believe I may have found a UUID multithreading error in Oracle java7 update 5. I wonder if anyone can confirm it with an independent example What basically happens is if I call UUID at the same time Random () (I use 64 threads), and I encounter conflicts most of the time)
However, if the UUID generator heats up by running a test in advance and just throws a bunch of UUIDs, it seems to work properly This is a key point of scala:
https://gist.github.com/3318973
It is important to note that I am inserting a mutable set that can be synchronized from 64 different threads The main thread waits for the worker to finish, and then checks what the set size should be Collisions print when they occur
thank you! Adam
Solution
This may be the case:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7071826
It's fixed in 7u6, which should come out soon