Skip to content

Commit

Permalink
Additional Logging for stress test failure due to get/multiget incons…
Browse files Browse the repository at this point in the history
…istency
  • Loading branch information
jaykorean committed Jan 11, 2024
1 parent 0758271 commit 89e5e42
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions db_stress_tool/no_batched_ops_stress.cc
Original file line number Diff line number Diff line change
Expand Up @@ -796,18 +796,27 @@ class NonBatchedOpsStressTest : public StressTest {
fprintf(stderr, "Get error: %s\n", s.ToString().c_str());
is_consistent = false;
} else if (!s.ok() && tmp_s.ok()) {
fprintf(stderr, "MultiGet returned different results with key %s\n",
key.ToString(true).c_str());
fprintf(stderr,
"MultiGet(%d) returned different results with key %s. "
"Snapshot Seq No: %lu\n",
column_family, key.ToString(true).c_str(),
readoptionscopy.snapshot->GetSequenceNumber());
fprintf(stderr, "Get returned ok, MultiGet returned not found\n");
is_consistent = false;
} else if (s.ok() && tmp_s.IsNotFound()) {
fprintf(stderr, "MultiGet returned different results with key %s\n",
key.ToString(true).c_str());
fprintf(stderr,
"MultiGet(%d) returned different results with key %s. "
"Snapshot Seq No: %lu\n",
column_family, key.ToString(true).c_str(),
readoptionscopy.snapshot->GetSequenceNumber());
fprintf(stderr, "MultiGet returned ok, Get returned not found\n");
is_consistent = false;
} else if (s.ok() && value != expected_value.ToString()) {
fprintf(stderr, "MultiGet returned different results with key %s\n",
key.ToString(true).c_str());
fprintf(stderr,
"MultiGet(%d) returned different results with key %s. "
"Snapshot Seq No: %lu\n",
column_family, key.ToString(true).c_str(),
readoptionscopy.snapshot->GetSequenceNumber());
fprintf(stderr, "MultiGet returned value %s\n",
expected_value.ToString(true).c_str());
fprintf(stderr, "Get returned value %s\n",
Expand Down

0 comments on commit 89e5e42

Please sign in to comment.