Browse Source

etcd-tester: fix spell check warnings

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee 7 years ago
parent
commit
ab33978646

+ 1 - 1
tools/functional-tester/etcd-tester/main.go

@@ -56,7 +56,7 @@ func main() {
 	stressQPS := flag.Int("stress-qps", 10000, "maximum number of stresser requests per second.")
 	schedCases := flag.String("schedule-cases", "", "test case schedule")
 	consistencyCheck := flag.Bool("consistency-check", true, "true to check consistency (revision, hash)")
-	stresserType := flag.String("stresser", "keys,lease", "comma separated list of stressers (keys, lease, v2keys, nop, election-runner, watch-runner, lock-racer-runner, lease-runner).")
+	stresserType := flag.String("stresser", "keys,lease", "comma separated list of stressing clients (keys, lease, v2keys, nop, election-runner, watch-runner, lock-racer-runner, lease-runner).")
 	etcdRunnerPath := flag.String("etcd-runner", "", "specify a path of etcd runner binary")
 	failureTypes := flag.String("failures", "default,failpoints", "specify failures (concat of \"default\" and \"failpoints\").")
 	failpoints := flag.String("failpoints", `panic("etcd-tester")`, `comma separated list of failpoint terms to inject (e.g. 'panic("etcd-tester"),1*sleep(1000)')`)

+ 2 - 2
tools/functional-tester/etcd-tester/stresser.go

@@ -51,7 +51,7 @@ func (s *nopStresser) ModifiedKeys() int64 {
 func (s *nopStresser) Checker() Checker { return nil }
 
 // compositeStresser implements a Stresser that runs a slice of
-// stressers concurrently.
+// stressing clients concurrently.
 type compositeStresser struct {
 	stressers []Stresser
 }
@@ -141,7 +141,7 @@ func NewStresser(s string, sc *stressConfig, m *member) Stresser {
 	case "nop":
 		return &nopStresser{start: time.Now(), qps: int(sc.rateLimiter.Limit())}
 	case "keys":
-		// TODO: Too intensive stressers can panic etcd member with
+		// TODO: Too intensive stressing clients can panic etcd member with
 		// 'out of memory' error. Put rate limits in server side.
 		return &keyStresser{
 			Endpoint:          m.grpcAddr(),

+ 7 - 7
tools/functional-tester/etcd-tester/tester.go

@@ -245,26 +245,26 @@ func (tt *tester) cleanup() error {
 }
 
 func (tt *tester) pauseStresser() {
-	plog.Infof("%s pausing the stressers...", tt.logPrefix())
+	plog.Infof("%s pausing the stressing clients...", tt.logPrefix())
 	tt.stresser.Pause()
-	plog.Infof("%s paused stressers", tt.logPrefix())
+	plog.Infof("%s paused stressing clients", tt.logPrefix())
 }
 
 func (tt *tester) startStresser() (err error) {
-	plog.Infof("%s starting the stressers...", tt.logPrefix())
+	plog.Infof("%s starting the stressing clients...", tt.logPrefix())
 	err = tt.stresser.Stress()
-	plog.Infof("%s started stressers", tt.logPrefix())
+	plog.Infof("%s started stressing clients", tt.logPrefix())
 	return err
 }
 
 func (tt *tester) closeStresser() {
-	plog.Infof("%s closing the stressers...", tt.logPrefix())
+	plog.Infof("%s closing the stressing clients...", tt.logPrefix())
 	tt.stresser.Close()
-	plog.Infof("%s closed stressers", tt.logPrefix())
+	plog.Infof("%s closed stressing clients", tt.logPrefix())
 }
 
 func (tt *tester) resetStressCheck() error {
-	plog.Infof("%s resetting stressers and checkers...", tt.logPrefix())
+	plog.Infof("%s resetting stressing clients and checkers...", tt.logPrefix())
 	cs := &compositeStresser{}
 	for _, m := range tt.cluster.Members {
 		s := NewStresser(tt.stresserType, &tt.scfg, m)