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
{{ message }}
Repository navigation
db_crashtest verification fails on file ingestion heavy workload #5848
When running super heavy file ingestion stress test, verifying the state of the database sometimes fails. This might be a problem with the stress test, or an actual problem with file ingestion, but either way it seems worth figuring out.
Expected behavior
We'd like to see this message:
Crash-recovery verification passed :)
Actual behavior
But instead sometimes we see a message like this:
Verification failed for column family 0 key 7341: Length of value read is not equal
Crash-recovery verification failed :(
2019/09/24-19:30:12 Starting database operations
2019/09/24-19:30:12 Starting verification
Verification failed :(
Steps to reproduce the behavior
build db_stress, preferably with DEBUG_LEVEL=0, then run the below command. On my machine it fails in ~10 seconds.
@petermattis found a bug in db_stress.cc where it was not acquiring a lock for a key being updated in TestPut(), if there was a preceding TestIngestExternalFile(), which allowed multiple threads to concurrently mutate the same key using TestPuts. I will send a PR to fix it.
Activity
ajkr commentedon Sep 25, 2019
I'm not able to add an assignee, but @sumeerbhola plans to investigate this.
sumeerbhola commentedon Sep 27, 2019
@petermattis found a bug in db_stress.cc where it was not acquiring a lock for a key being updated in TestPut(), if there was a preceding TestIngestExternalFile(), which allowed multiple threads to concurrently mutate the same key using TestPuts. I will send a PR to fix it.