drizzleslap where condition not random
Bug #667200 reported by
Andrew Hutchings
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Won't Fix
|
Critical
|
Andrew Hutchings | ||
7.0 |
Won't Fix
|
Critical
|
Andrew Hutchings |
Bug Description
drizzleslap WHERE condition is not random.
bin/drizzleslap --only-print --label=
grep 796c4422-
1000000
796c4422-
Changed in drizzle: | |
status: | Triaged → Won't Fix |
To post a comment you must log in.
This only affects --only-print and BLACKHOLE engine.
This is a flaw in the way mysqlslap (and therefore drizzleslap) is designed. By default it uses NULL or uuid() drizzle function to insert and does this on multiple threads and then a select on the pkey to fill the pkey list.
To fix this INSERT generation needs to be completely re-written to generate uuids in code and in a different place so that there are no duplicates.
This will require an OO re-write of drizzleslap. Which may be something for another time. For now Won't Fix.