Skip to content

Commit 26aa0db

Browse files
committed
s-b: print error limiting parameters in the initial config dump
Now, the values of "error-limit" and "error-limit-at-row" flags are printed along with other parameters when the scylla-bench frontend is being started.
1 parent 962109b commit 26aa0db

File tree

1 file changed

+10
-0
lines changed
  • src/bin/cql-stress-scylla-bench

1 file changed

+10
-0
lines changed

src/bin/cql-stress-scylla-bench/args.rs

+10
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,16 @@ impl ScyllaBenchArgs {
429429
println!("Mode:\t\t\t {}", show_mode(&self.mode));
430430
println!("Workload:\t\t {}", show_workload(&self.workload));
431431
println!("Timeout:\t\t {}", format_duration(self.timeout));
432+
if self.max_retries_per_op == u64::MAX {
433+
println!("Max error number at row: unlimited");
434+
} else {
435+
println!("Max error number at row: {}", self.max_retries_per_op);
436+
}
437+
if self.max_retries_in_total == u64::MAX {
438+
println!("Max error number:\t unlimited");
439+
} else {
440+
println!("Max error number:\t {}", self.max_retries_in_total);
441+
}
432442
println!(
433443
"Consistency level:\t {}",
434444
show_consistency_level(&self.consistency_level)

0 commit comments

Comments
 (0)