-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
roachtest: schemachange/random-load failed [using NaN values does not work for unique constraints] #120771
Comments
|
full txn:
DETAIL: Key (col83_w19_87 + 'NaN':::DECIMAL)=(NaN) already exists. |
the simple repro is the following:
perhaps avoiding exprs that would generate NaN in unique constraints is what we should do we could also make NaNs not equal, but that seems like a hot take and also deviates from postgres compat |
nice find! yes, i think it's best to avoid NaNs for unique constraint definitions. maybe we could avoid NaN for any generated expression in DDL? |
i haven't been able to reproduce this in the schemachange workload easily (i was hoping to get a debugger in there) i think i should cc: @cockroachdb/sql-queries here before i get lost in the sauce - q for queries: is cockroach/pkg/sql/randgen/schema.go Line 594 in 66517cd
cockroach/pkg/sql/randgen/expr.go Lines 219 to 222 in 6b662e3
isn't going to be some expression that produces a constant result (like NaN or infinity) whenever a unique constraint exists on the index/column we are making an expression for? |
The idea to adjust |
roachtest.schemachange/random-load failed with artifacts on master @ 04e1faeb6b674729e989e001d37429786b584c6e:
Parameters:
|
We have marked this test failure issue as stale because it has been |
Given that this NaN issue hasn't reoccurred in a while, I propose we don't spend time working on it unless it occurs more. |
roachtest.schemachange/random-load failed with artifacts on master @ f0116ea373a2b87155e7f0264df4f783ce177360:
Parameters:
ROACHTEST_arch=amd64
ROACHTEST_cloud=gce
ROACHTEST_coverageBuild=false
ROACHTEST_cpu=4
ROACHTEST_encrypted=false
ROACHTEST_fs=ext4
ROACHTEST_localSSD=true
ROACHTEST_metamorphicBuild=false
ROACHTEST_ssd=0
Help
See: roachtest README
See: How To Investigate (internal)
See: Grafana
This test on roachdash | Improve this report!
Jira issue: CRDB-36866
The text was updated successfully, but these errors were encountered: