Skip to content

Commit 7f9011a

Browse files
authored
Merge pull request #17640 from thirdkeyword/main
fix some typos
2 parents b643f1b + fbda591 commit 7f9011a

File tree

13 files changed

+19
-19
lines changed

13 files changed

+19
-19
lines changed

etcdctl/ctlv3/command/check.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func NewCheckPerfCommand() *cobra.Command {
126126
}
127127

128128
// TODO: support customized configuration
129-
cmd.Flags().StringVar(&checkPerfLoad, "load", "s", "The performance check's workload model. Accepted workloads: s(small), m(medium), l(large), xl(xLarge). Different workload models use different configurations in terms of number of clients and expected throughtput.")
129+
cmd.Flags().StringVar(&checkPerfLoad, "load", "s", "The performance check's workload model. Accepted workloads: s(small), m(medium), l(large), xl(xLarge). Different workload models use different configurations in terms of number of clients and expected throughput.")
130130
cmd.Flags().StringVar(&checkPerfPrefix, "prefix", "/etcdctl-check-perf/", "The prefix for writing the performance check's keys.")
131131
cmd.Flags().BoolVar(&autoCompact, "auto-compact", false, "Compact storage with last revision after test is finished.")
132132
cmd.Flags().BoolVar(&autoDefrag, "auto-defrag", false, "Defragment storage after test is finished.")

scripts/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ function dep_pass {
542542
duplicates=$(echo "${all_dependencies}" | cut -d ',' -f 1,2 | sort | uniq | cut -d ',' -f 1 | sort | uniq -d) || return 2
543543

544544
for dup in ${duplicates}; do
545-
log_error "FAIL: inconsistent versions for depencency: ${dup}"
545+
log_error "FAIL: inconsistent versions for dependency: ${dup}"
546546
echo "${all_dependencies}" | grep "${dup}" | sed "s|\\([^,]*\\),\\([^,]*\\),\\([^,]*\\)| - \\1@\\2 from: \\3|g"
547547
done
548548
if [[ -n "${duplicates}" ]]; then

scripts/test_images.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ if [ "${GET}" != "${VALUE}" ]; then
8181
exit 1
8282
fi
8383

84-
echo "Succesfully tested etcd local image ${TAG}"
84+
echo "Successfully tested etcd local image ${TAG}"
8585

8686
for TARGET_ARCH in "amd64" "arm64" "ppc64le" "s390x"; do
8787
ARCH_TAG=v"${VERSION}"-"${TARGET_ARCH}"

scripts/test_lib.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -413,15 +413,15 @@ function run_go_tool {
413413
GOARCH="" run "${cmdbin}" "$@" || return 2
414414
}
415415

416-
# assert_no_git_modifications fails if there are any uncommited changes.
416+
# assert_no_git_modifications fails if there are any uncommitted changes.
417417
function assert_no_git_modifications {
418418
log_callout "Making sure everything is committed."
419419
if ! git diff --cached --exit-code; then
420-
log_error "Found staged by uncommited changes. Do commit/stash your changes first."
420+
log_error "Found staged by uncommitted changes. Do commit/stash your changes first."
421421
return 2
422422
fi
423423
if ! git diff --exit-code; then
424-
log_error "Found unstaged and uncommited changes. Do commit/stash your changes first."
424+
log_error "Found unstaged and uncommitted changes. Do commit/stash your changes first."
425425
return 2
426426
fi
427427
}

server/storage/backend/hooks_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ func TestBackendPreCommitHook(t *testing.T) {
4242
// Empty commit.
4343
tx.Commit()
4444

45-
assert.Equal(t, ">cc", getCommitsKey(t, be), "expected 2 explict commits")
45+
assert.Equal(t, ">cc", getCommitsKey(t, be), "expected 2 explicit commits")
4646
tx.Commit()
47-
assert.Equal(t, ">ccc", getCommitsKey(t, be), "expected 3 explict commits")
47+
assert.Equal(t, ">ccc", getCommitsKey(t, be), "expected 3 explicit commits")
4848
}
4949

5050
func TestBackendAutoCommitLimitHook(t *testing.T) {

server/storage/schema/auth_roles_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func TestGetAllRoles(t *testing.T) {
7979
want: []*authpb.Role{{Name: []byte("role2")}},
8080
},
8181
{
82-
name: "Returns data overriden by put",
82+
name: "Returns data overridden by put",
8383
setup: func(tx auth.UnsafeAuthWriter) {
8484
tx.UnsafePutRole(&authpb.Role{
8585
Name: []byte("role1"),
@@ -179,7 +179,7 @@ func TestGetRole(t *testing.T) {
179179
want: nil,
180180
},
181181
{
182-
name: "Returns data overriden by put",
182+
name: "Returns data overridden by put",
183183
setup: func(tx auth.UnsafeAuthWriter) {
184184
tx.UnsafePutRole(&authpb.Role{
185185
Name: []byte("role1"),

server/storage/schema/auth_users_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func TestGetAllUsers(t *testing.T) {
7575
want: []*authpb.User{{Name: []byte("bob")}},
7676
},
7777
{
78-
name: "Returns data overriden by put",
78+
name: "Returns data overridden by put",
7979
setup: func(tx auth.UnsafeAuthWriter) {
8080
tx.UnsafePutUser(&authpb.User{
8181
Name: []byte("alice"),
@@ -163,7 +163,7 @@ func TestGetUser(t *testing.T) {
163163
want: nil,
164164
},
165165
{
166-
name: "Returns data overriden by put",
166+
name: "Returns data overridden by put",
167167
setup: func(tx auth.UnsafeAuthWriter) {
168168
tx.UnsafePutUser(&authpb.User{
169169
Name: []byte("alice"),

server/storage/schema/confstate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func MustUnsafeSaveConfStateToBackend(lg *zap.Logger, tx backend.UnsafeWriter, c
3636
}
3737

3838
// UnsafeConfStateFromBackend retrieves ConfState from the backend.
39-
// Returns nil if confState in backend is not persisted (e.g. backend writen by <v3.5).
39+
// Returns nil if confState in backend is not persisted (e.g. backend written by <v3.5).
4040
func UnsafeConfStateFromBackend(lg *zap.Logger, tx backend.UnsafeReader) *raftpb.ConfState {
4141
keys, vals := tx.UnsafeRange(Meta, MetaConfStateName, nil, 0)
4242
if len(keys) == 0 {

server/storage/wal/wal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ func openWALFiles(lg *zap.Logger, dirpath string, names []string, nameIndex int,
438438
// exists in the log). Such a situation can happen in cases described in figure 7. of the
439439
// RAFT paper (http://web.stanford.edu/~ouster/cgi-bin/papers/raft-atc14.pdf).
440440
//
441-
// ReadAll may return uncommitted yet entries, that are subject to be overriden.
441+
// ReadAll may return uncommitted yet entries, that are subject to be overridden.
442442
// Do not apply entries that have index > state.commit, as they are subject to change.
443443
func (w *WAL) ReadAll() (metadata []byte, state raftpb.HardState, ents []raftpb.Entry, err error) {
444444
w.mu.Lock()

tests/common/lease_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ func TestLeaseGrantAndList(t *testing.T) {
9090
createdLeases = append(createdLeases, leaseResp.ID)
9191
}
9292

93-
// Because we're not guarunteed to talk to the same member, wait for
94-
// listing to eventually return true, either by the result propagaing
93+
// Because we're not guaranteed to talk to the same member, wait for
94+
// listing to eventually return true, either by the result propagating
9595
// or by hitting an up to date member.
9696
var leases []clientv3.LeaseStatus
9797
require.Eventually(t, func() bool {

tests/integration/lazy_cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
// See ./tests/integration/clientv3/examples/main_test.go for canonical usage.
3232
// Please notice that the shared (LazyCluster's) state is preserved between
3333
// testcases, so left-over state might has cross-testcase effects.
34-
// Prefer dedicated clusters for substancial test-cases.
34+
// Prefer dedicated clusters for substantial test-cases.
3535

3636
type LazyCluster interface {
3737
// EndpointsHTTP - exposes connection points for http endpoints.

tests/robustness/validate/validate_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ func TestValidateWatch(t *testing.T) {
223223
},
224224
},
225225
{
226-
name: "create event and update event in seperate requests both with PrevKV()",
226+
name: "create event and update event in separate requests both with PrevKV()",
227227
reports: []report.ClientReport{
228228
{
229229
Watch: []model.WatchOperation{

tools/etcd-dump-logs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Entry types (ConfigChange,IRRCompaction) count is : 5
9797
```
9898
#### etcd-dump-logs -stream-decoder <EXECUTABLE_DECODER> [data dir]
9999

100-
Decode each entry based on logic in the passed decoder. Decoder status and decoded data are listed in separated tab/columns in the ouput. For parsing purpose, the output from decoder are expected to be in format of "<DECODER_STATUS>|<DECODED_DATA>". Please refer to [decoder_correctoutputformat.sh] as an example.
100+
Decode each entry based on logic in the passed decoder. Decoder status and decoded data are listed in separated tab/columns in the output. For parsing purpose, the output from decoder are expected to be in format of "<DECODER_STATUS>|<DECODED_DATA>". Please refer to [decoder_correctoutputformat.sh] as an example.
101101

102102
However, if the decoder output format is not as expected, "decoder_status" will be "decoder output format is not right, print output anyway", and all output from decoder will be considered as "decoded_data"
103103

0 commit comments

Comments
 (0)