You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
workload: use IMPORT by default, but warn against uniqueness violations
In 1041bf0 (#152979), we converted ycsb and kv workloads to use INSERT
statements for initial data loading when hashing keys.
Hashing keys can cause key collisions. At higher row counts, these collisions
are inevitable. Since IMPORTs require imported data to be unique, an IMPORT
with colliding keys would fail. Before #152979, only the ycsb workload was
susceptible to this failure mode, because the kv workload did not use the same
key generator for data loaded through --insert-count (#107874). Fixing #107874
made the kv workload susceptible to this type of failure.
The change to use INSERTs instead of IMPORTs ran afoul of KV message size
limits (see #153086). For now we revert the change to automatically use IMPORTs
and instead warn about the possibility of collisions.
Epic: none
Release note: none
log.Dev.Warningf(ctx, "importing fixture using a key generator that may contain duplicates; IMPORT may abort with a key uniqueness violation at higher row counts")
319
+
}
313
320
314
321
log.Dev.Infof(ctx, "starting import of %d tables", len(gen.Tables()))
0 commit comments