mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
better named scenario error for missing name, improved seq example
This commit is contained in:
parent
278ebbd8ae
commit
d877ee7628
engine-cli/src/main/java/io/nosqlbench/engine/cli
nb/src/main/resources/activities/examples
@ -49,7 +49,8 @@ public class NBCLIScenarioParser {
|
||||
Scenarios scenarios = stmts.getDocScenarios();
|
||||
List<String> cmds = scenarios.getNamedScenario(scenarioName);
|
||||
if (cmds==null) {
|
||||
throw new BasicError("Unable to find named scenario '" + scenarioName + "' in workload '" + workloadName);
|
||||
throw new BasicError("Unable to find named scenario '" + scenarioName + "' in workload '" + workloadName
|
||||
+", but you can pick from " + String.join(",",scenarios.getScenarioNames()));
|
||||
}
|
||||
|
||||
// This will hold the command to be prepended to the main arglist
|
||||
|
@ -1,10 +1,14 @@
|
||||
# eb run type=stdout yaml=examples/sequences cycles=20 seq=concat
|
||||
# eb sequences concat
|
||||
# yields ABBCCCDDDDABBCCCDDDD
|
||||
# eb run type=stdout yaml=examples/sequences cycles=20 seq=interval
|
||||
# yeilds ABCDDCBDCDABCDDCBDCD
|
||||
# eb run type=stdout yaml=examples/sequences cycles=20 seq=bucket
|
||||
# yeilds ABCDBCDCDDABCDBCDCDD
|
||||
# eb run driver=stdout workload=examples/sequences cycles=20 seq=interval
|
||||
# yields ABCDDCBDCDABCDDCBDCD
|
||||
# eb run driver=stdout workload=examples/sequences cycles=20 seq=bucket
|
||||
# yields ABCDBCDCDDABCDBCDCDD
|
||||
|
||||
scenarios:
|
||||
concat: driver===stdout seq===concat
|
||||
bucket: driver===stdout seq===bucket
|
||||
interval: driver===stdout seq===interval
|
||||
statements:
|
||||
- A1: "|"
|
||||
ratio: 1
|
||||
@ -13,4 +17,4 @@ statements:
|
||||
- C3: "="
|
||||
ratio: 3
|
||||
- D4: ":"
|
||||
ratio: 4
|
||||
ratio: 4
|
||||
|
Loading…
Reference in New Issue
Block a user