scylladb / gemini

Test data integrity by comparing against an Oracle running in parallel
Apache License 2.0
28 stars 16 forks source link

Make error more verbose #387

Open dkropachev opened 1 year ago

dkropachev commented 1 year ago

When statement fails gemini issues log record that looks like this:

{"L":"INFO","T":"2023-07-07T13:33:58.831Z","N":"work cycle.validation_job","M":"Validation failed. Error: unable to load check data from the test store: gocql: expected 2 values send got 0"}
Error detected: &joberror.JobError{Timestamp:time.Date(2023, time.July, 7, 13, 33, 58, 888559481, time.Local), Message:"Validation failed: unable to load check data from the test store: gocql: expected 2 values send got 0", Query:"SELECT * FROM ks1.table1 WHERE pk0=? AND pk1=? ", StmtType:"SelectStatement"}{"L":"INFO","T":"2023-07-07T13:33:58.895Z","N":"work cycle.validation_job","M":"ending validation loop"}

Lets add information on it, for instance what oracle response was, what values where populated into the query