-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation/learning/api.md: fix typos #8996
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8996 +/- ##
=========================================
Coverage ? 75.84%
=========================================
Files ? 359
Lines ? 29825
Branches ? 0
=========================================
Hits ? 22622
Misses ? 5619
Partials ? 1584 Continue to review full report at Codecov.
|
/cc @spzala can you take a look of this? |
@xiang90 yup sounds great. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In-line review comments. Thanks!
Documentation/learning/api.md
Outdated
@@ -47,7 +47,7 @@ message ResponseHeader { | |||
|
|||
An application may read the Cluster_ID (Member_ID) field to ensure it is communicating with the intended cluster (member). | |||
|
|||
Applications can use the `Revision` to know the latest revision of the key-value store. This is especially useful when applications specify a historical revision to make time `travel query` and wish to know the latest revision at the time of the request. | |||
Applications can use the `Revision` to know the latest revision of the key-value store. This is especially useful when applications specify a historical revision to make a `time travel query` and wish to know the latest revision at the time of the request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add "field" after Revision
for consistency and better reading i.e. Applications can use the Revision
field to...
Documentation/learning/api.md
Outdated
@@ -47,7 +47,7 @@ message ResponseHeader { | |||
|
|||
An application may read the Cluster_ID (Member_ID) field to ensure it is communicating with the intended cluster (member). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cluster_ID and Member_ID should be emphasized as Cluster_ID
and Member_ID
to be consistent with other fields (e.g. Revision
or Raft_Term
). Also I think since they are two different field, re-writing "Cluster_ID (Member_ID)" as "Cluster_ID
or Member_ID
" would be proper. Thanks!
Documentation/learning/api.md
Outdated
@@ -86,7 +86,7 @@ In addition to just the key and value, etcd attaches additional revision metadat | |||
|
|||
etcd maintains a 64-bit cluster-wide counter, the store revision, that is incremented each time the key space is modified. The revision serves as a global logical clock, sequentially ordering all updates to the store. The change represented by a new revisions is incremental; the data associated with a revision is the data that changed the store. Internally, a new revision means writing the changes to the backend's B+tree, keyed by the incremented revision. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest to change "a new revisions ..." to "a new revision ..."
Documentation/learning/api.md
Outdated
@@ -86,7 +86,7 @@ In addition to just the key and value, etcd attaches additional revision metadat | |||
|
|||
etcd maintains a 64-bit cluster-wide counter, the store revision, that is incremented each time the key space is modified. The revision serves as a global logical clock, sequentially ordering all updates to the store. The change represented by a new revisions is incremental; the data associated with a revision is the data that changed the store. Internally, a new revision means writing the changes to the backend's B+tree, keyed by the incremented revision. | |||
|
|||
Revisions become more valuable when taking considering etcd3's [multi-version concurrency control][mvcc] backend. The MVCC model means that the key-value store can be viewed from past revisions since historical key revisions are retained. The retention policy for this history can be configured by cluster administrators for fine-grained storage management; usually etcd3 discards old revisions of keys on a timer. A typical etcd3 cluster retains superseded key data for hours. This also buys reliable handling for long client disconnection, not just transient network disruptions: watchers simply resume from the last observed historical revision. Similarly, to read from the store at a particular point-in-time, read requests can be tagged with a revision to return keys from a view of the key space at the point in time that revision was committed. | |||
Revisions become more valuable when considering etcd3's [multi-version concurrency control][mvcc] backend. The MVCC model means that the key-value store can be viewed from past revisions since historical key revisions are retained. The retention policy for this history can be configured by cluster administrators for fine-grained storage management; usually etcd3 discards old revisions of keys on a timer. A typical etcd3 cluster retains superseded key data for hours. This also buys reliable handling for long client disconnection, not just transient network disruptions: watchers simply resume from the last observed historical revision. Similarly, to read from the store at a particular point-in-time, read requests can be tagged with a revision to return keys from a view of the key space at the point in time that revision was committed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest to replace "This also buys reliable handling..." to "This also provides reliable handling..". (if word 'buys' is not used for a special purpose).
Documentation/learning/api.md
Outdated
@@ -86,7 +86,7 @@ In addition to just the key and value, etcd attaches additional revision metadat | |||
|
|||
etcd maintains a 64-bit cluster-wide counter, the store revision, that is incremented each time the key space is modified. The revision serves as a global logical clock, sequentially ordering all updates to the store. The change represented by a new revisions is incremental; the data associated with a revision is the data that changed the store. Internally, a new revision means writing the changes to the backend's B+tree, keyed by the incremented revision. | |||
|
|||
Revisions become more valuable when taking considering etcd3's [multi-version concurrency control][mvcc] backend. The MVCC model means that the key-value store can be viewed from past revisions since historical key revisions are retained. The retention policy for this history can be configured by cluster administrators for fine-grained storage management; usually etcd3 discards old revisions of keys on a timer. A typical etcd3 cluster retains superseded key data for hours. This also buys reliable handling for long client disconnection, not just transient network disruptions: watchers simply resume from the last observed historical revision. Similarly, to read from the store at a particular point-in-time, read requests can be tagged with a revision to return keys from a view of the key space at the point in time that revision was committed. | |||
Revisions become more valuable when considering etcd3's [multi-version concurrency control][mvcc] backend. The MVCC model means that the key-value store can be viewed from past revisions since historical key revisions are retained. The retention policy for this history can be configured by cluster administrators for fine-grained storage management; usually etcd3 discards old revisions of keys on a timer. A typical etcd3 cluster retains superseded key data for hours. This also buys reliable handling for long client disconnection, not just transient network disruptions: watchers simply resume from the last observed historical revision. Similarly, to read from the store at a particular point-in-time, read requests can be tagged with a revision to return keys from a view of the key space at the point in time that revision was committed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace “point in time” with “point-in-time” in the “…at the point in time that revision was committed.” sentence for consistency.
Since we are fixing small things in this particular doc page, I also have few more comments: I would suggest to change “Request to “request” in the “By convention, ranges for a Request are denoted ..” sentence under the “Key ranges” section for consistency. Change DeleteRange to Change “If” to Change “Watch” to Please let me know if have questions. Thanks! |
A few words have been emphasized to be consistent with the rest of the text. Also, some phrases have been altered for better readability.
Hello, @spzala. Thanks for your review. I made another commit containing your suggestions. :) |
lgtm |
@tinx thanks for addressing all the comments :-) |
lgtm |
merging |
Just some minor fixes in api.md.