Skip to content

Commit

Permalink
doc(bigtable): Fix misspelled words (#11489)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhshkh authored Jan 27, 2025
1 parent 9b9e87a commit b89dd8e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions bigtable/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ func (ac *AdminClient) SetGCPolicyWithOptions(ctx context.Context, table, family
return ac.UpdateFamily(ctx, table, family, Family{GCPolicy: policy}, familyOpts...)
}

// UpdateFamily updates column families' garbage colleciton policies and value type.
// UpdateFamily updates column families' garbage collection policies and value type.
func (ac *AdminClient) UpdateFamily(ctx context.Context, table, familyName string, family Family, opts ...UpdateFamilyOption) error {
ctx = mergeOutgoingMetadata(ctx, ac.md)
prefix := ac.instancePrefix()
Expand Down Expand Up @@ -1436,7 +1436,7 @@ func (iac *InstanceAdminClient) InstanceInfo(ctx context.Context, instanceID str
// AutoscalingConfig contains autoscaling configuration for a cluster.
// For details, see https://cloud.google.com/bigtable/docs/autoscaling.
type AutoscalingConfig struct {
// MinNodes sets the minumum number of nodes in a cluster. MinNodes must
// MinNodes sets the minimum number of nodes in a cluster. MinNodes must
// be 1 or greater.
MinNodes int
// MaxNodes sets the maximum number of nodes in a cluster. MaxNodes must be
Expand Down Expand Up @@ -1584,7 +1584,7 @@ func (iac *InstanceAdminClient) DeleteCluster(ctx context.Context, instanceID, c
}

// SetAutoscaling enables autoscaling on a cluster. To remove autoscaling, use
// UpdateCluster. See AutoscalingConfig documentation for deatils.
// UpdateCluster. See AutoscalingConfig documentation for details.
func (iac *InstanceAdminClient) SetAutoscaling(ctx context.Context, instanceID, clusterID string, conf AutoscalingConfig) error {
ctx = mergeOutgoingMetadata(ctx, iac.md)
cluster := &btapb.Cluster{
Expand Down Expand Up @@ -2051,7 +2051,7 @@ func UpdateInstanceAndSyncClusters(ctx context.Context, iac *InstanceAdminClient
continue
}

// We update teh clusters autoscaling config, or its number of serve
// We update the clusters autoscaling config, or its number of serve
// nodes.
var updateErr error
if cluster.AutoscalingConfig != nil {
Expand Down
2 changes: 1 addition & 1 deletion bigtable/bigtable.go
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ func mutationsAreRetryable(muts []*btpb.Mutation) bool {
return true
}

// Overriden in tests
// Overridden in tests
var maxMutations = 100000

// Apply mutates a row atomically. A mutation must contain at least one
Expand Down
2 changes: 1 addition & 1 deletion bigtable/bigtable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ func TestMutateRowsWithAggregates_MergeToCell(t *testing.T) {
type rowKeyCheckingInterceptor struct {
grpc.ClientStream
failRow string
failErr error // error to use while sending failed reponse for fail row
failErr error // error to use while sending failed response for fail row
requestCounter *int
}

Expand Down
4 changes: 2 additions & 2 deletions bigtable/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2645,7 +2645,7 @@ func TestIntegration_AdminEncryptionInfo(t *testing.T) {
time.Sleep(time.Second * 10)
}
if encryptionKeyVersion == "" {
t.Fatalf("Encryption Key not created within alotted time end")
t.Fatalf("Encryption Key not created within allotted time end")
}

// Validate Encryption Info under getTable
Expand All @@ -2672,7 +2672,7 @@ func TestIntegration_AdminEncryptionInfo(t *testing.T) {
t.Fatalf("KMS Key Version: %v, want: %v", got, want)
}

// Validate Encyrption Info retrieved via EncryptionInfo
// Validate Encryption Info retrieved via EncryptionInfo
encryptionInfo, err := adminClient.EncryptionInfo(ctx, table)
if err != nil {
t.Fatalf("EncryptionInfo: %v", err)
Expand Down

0 comments on commit b89dd8e

Please sign in to comment.