-
Notifications
You must be signed in to change notification settings - Fork 43
Fixes gh-2185 IPROTO_BALLOT rework and a new field #2241
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d0ece72
Fixes gh-2185 IPROTO_BALLOT rework and a new field
pgulutzan fea09e3
Corrected version numbers of IPROTO_BALLOT change
pgulutzan 152d90c
Change iproto_ballot_ro to iproto_ballot_is_ro
pgulutzan edcc899
Update doc/dev_guide/internals/box_protocol.rst
veod32 ccdce48
Update translations
patiencedaur 294b56b
Update translations
alexandra-mara b2113a1
Merge branch 'latest' into pgulutzan-gh-2185
alexandra-mara File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -168,11 +168,12 @@ The IPROTO constants that appear within requests or responses that we will descr | |
| IPROTO_EXPR=0x27 | ||
| IPROTO_OPS=0x28 | ||
| IPROTO_BALLOT=0x29 | ||
| IPROTO_BALLOT_IS_RO=0x01 | ||
| IPROTO_BALLOT_IS_RO_CFG=0x01 | ||
| IPROTO_BALLOT_VCLOCK=0x02 | ||
| IPROTO_BALLOT_GC_VCLOCK=0x03 | ||
| IPROTO_BALLOT_IS_LOADING=0x04 | ||
| IPROTO_BALLOT_IS_RO=0x04 | ||
| IPROTO_BALLOT_IS_ANON=0x05 | ||
| IPROTO_BALLOT_IS_BOOTED=0x06 | ||
| IPROTO_TUPLE_META=0x2a | ||
| IPROTO_OPTIONS=0x2b | ||
| IPROTO_DATA=0x30 | ||
|
|
@@ -1273,16 +1274,36 @@ The fields within IPROTO_BALLOT are map items: | |
|
|
||
| .. code-block:: none | ||
|
|
||
| IPROTO_BALLOT_IS_RO (0x01) + MP_BOOL | ||
| IPROTO_BALLOT_IS_RO_CFG (0x01) + MP_BOOL | ||
| IPROTO_BALLOT_VCLOCK (0x02) + vclock | ||
| IPROTO_BALLOT_GC_VCLOCK (0x03) + vclock | ||
| IPROTO_BALLOT_IS_LOADING (0x04) + MP_BOOL | ||
| IPROTO_BALLOT_IS_RO (0x04) + MP_BOOL | ||
| IPROTO_BALLOT_IS_ANON = 0x05 + MP_BOOL | ||
| IPROTO_BALLOT_IS_BOOTED = 0x06 + MP_BOOL | ||
|
|
||
| IPROTO_BALLOt-IS_ANON corresponds to :ref:`box.cfg.replication_anon <cfg_replication-replication_anon>`. | ||
| IPROTO_BALLOT_IS_RO_CFG and IPRO_BALLOT_VCLOCK and IPROTO_BALLOT_GC_VCLOCK and IPROTO_BALLOT_IS_RO | ||
| were added in version :doc:`2.6.1 </release/2.6.1>`. | ||
| IPROTO_BALLOT_IS_ANON was added in version :doc:`2.7.1 </release/2.7.1>`. | ||
| IPROTO_BALLOT_IS_BOOTED was added in version 2.7.3 and 2.8.2 and 2.9.1. | ||
| There have been some name changes starting with version 2.7.3 and 2.8.2 and 2.9.1: | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These versions are not released yet. |
||
| IPROTO_BALLOT_IS_RO_CFG was formerly called IPROTO_BALLOT_IS_RO, | ||
| and IPROTO_BALLOT_IS_RO was formerly called IPROTO_BALLOT_IS_LOADING. | ||
|
|
||
| The items other than IPROTO_BALLOT_IS_ANON were added in version :doc:`2.6.1 </release/2.6.1>`. | ||
| PROTO_BALLOT_IS_ANON was added in version :doc:`2.7.1 </release/2.7.1>`. | ||
| IPROTO_BALLOT_IS_RO_CFG corresponds to :ref:`box.cfg.read_only <cfg_basic-read_only>`. | ||
|
|
||
| IPROTO_BALLOT_GC_VCLOCK can be the vclock value of the instance's oldest | ||
| WAL entry, which corresponds to :ref:`box.info.gc().vclock <box_info_gc>`. | ||
|
|
||
| IPROTO_BALLOT_IS_RO is true if the instance is not writable, | ||
| which may happen for a variety of reasons, such as: | ||
| it was configured as :ref:`read_only <cfg_basic-read_only>`, | ||
| or it has :ref:`orphan status <replication-orphan_status>`, | ||
| or it is a :ref:`Raft <repl_leader_elect>` follower. | ||
|
|
||
| IPROTO_BALLOT_IS_ANON corresponds to :ref:`box.cfg.replication_anon <cfg_replication-replication_anon>`. | ||
|
|
||
| IPROTO_BALLOT_IS_BOOTED is true if the instance has finished its | ||
| bootstrap or recovery process. | ||
|
|
||
| .. _box_protocol-flags: | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
These versions are not released yet.
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.
It's an improvement to change "IPROTO_BALLOT_GC_VCLOCK may have the value" to "IPROTO_BALLOT_GC_VCLOCK can be the clock value", yes.
It's true that "These versions are not released yet." In fact the changes have been done already. However, in #2185, in response to the question "@Gerold103 Since which Tarantool version we have these changes?", the answer was "2.9.1, 2.8.2, 2.7.3". I understood this to mean that these are the versions that we should mention.