Skip to content

Commit

Permalink
wording
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernauer committed Sep 25, 2023
1 parent cd3cf11 commit 413ff4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ let max_unavailable = dfs_replication.saturating_sub(2);
// We need to make sure at least one datanode remains by having at most
// n - 1 datanodes unavailable. We subtract two to avoid a single point of failure.
let max_unavailable = min(max_unavailable, num_datanodes.saturating_sub(2));
// Clamp to at least a single datanode allowed to being, to not block Kubernetes nodes
// from being not able to drain.
// Clamp to at least a single node allowed to being, to not block Kubernetes nodes from draining.

Check notice on line 38 in docs/modules/hdfs/pages/usage-guide/operations/pod_disruptions.adoc

View workflow job for this annotation

GitHub Actions / LanguageTool

[LanguageTool] docs/modules/hdfs/pages/usage-guide/operations/pod_disruptions.adoc#L38

The verb after “to” should be in the base form. (TO_NON_BASE[3]) Suggestions: `be` Rule: https://community.languagetool.org/rule/show/TO_NON_BASE?lang=en-US&subId=3 Category: GRAMMAR
Raw output
docs/modules/hdfs/pages/usage-guide/operations/pod_disruptions.adoc:38:46: The verb after “to” should be in the base form. (TO_NON_BASE[3])
 Suggestions: `be`
 Rule: https://community.languagetool.org/rule/show/TO_NON_BASE?lang=en-US&subId=3
 Category: GRAMMAR
let max_unavailable = max(max_unavailable, 1)
----

Expand Down
3 changes: 1 addition & 2 deletions rust/operator/src/operations/pdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ fn max_unavailable_data_nodes(num_datanodes: u16, dfs_replication: u16) -> u16 {
// We need to make sure at least one datanode remains by having at most
// n - 1 datanodes unavailable. We subtract two to avoid a single point of failure.
let max_unavailable = min(max_unavailable, num_datanodes.saturating_sub(2));
// Clamp to at least a single datanode allowed to being, to not block Kubernetes nodes
// from being not able to drain.
// Clamp to at least a single node allowed to being, to not block Kubernetes nodes from draining.
max(max_unavailable, 1)
}

Expand Down

0 comments on commit 413ff4d

Please sign in to comment.