Skip to content

internal: drop graceful shutdown feature flag #263

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

Conversation

DifferentialOrange
Copy link
Member

Graceful shutdown was introduced in Tarantool with [1]. A week later it was reworked with [2]. So the timeline is as follows.

  • Graceful shutdown is introduced, new feature flag is added and the protocol version is bumped to 4.
  • Graceful shutdown is reworked, feature flag is dropped and the protocol version is dropped to 3.
  • Next Tarantool version released.

So the idea for users is "IPROTO_FEATURE_GRACEFUL_SHUTDOWN and protocol version 4 never existed". It also means that any new feature flag may have value 4 (same as IPROTO_FEATURE_GRACEFUL_SHUTDOWN), but with completely different meaning. IPROTO_FEATURE_GRACEFUL_SHUTDOWN flag was added in [3] by mistake due to misunderstanding the event timeline. This patch removes the flag. Since _features dict is an internal of a connection object, the change shouldn't break anything for users.

  1. tarantool/tarantool@6f29f9d
  2. tarantool/tarantool@2e9cbec
  3. Support iproto feature discovery #243

Closes #262

Graceful shutdown was introduced in Tarantool with [1]. A week later it
was reworked with [2]. So the timeline is as follows.

- Graceful shutdown is introduced, new feature flag is added and
  the protocol version is bumped to 4.
- Graceful shutdown is reworked, feature flag is dropped and the
  protocol version is dropped to 3.
- Next Tarantool version released.

So the idea for users is "IPROTO_FEATURE_GRACEFUL_SHUTDOWN and
protocol version 4 never existed". It also means that any new feature
flag may have value `4` (same as IPROTO_FEATURE_GRACEFUL_SHUTDOWN), but
with completely different meaning. IPROTO_FEATURE_GRACEFUL_SHUTDOWN flag
was added in [3] by mistake due to misunderstanding the event timeline.
This patch removes the flag. Since `_features` dict is an internal of a
connection object, the change shouldn't break anything for users.

1. tarantool/tarantool@6f29f9d
2. tarantool/tarantool@2e9cbec
3. #243

Closes #262
@DifferentialOrange DifferentialOrange force-pushed the DifferentialOrange/gh-262-graceful-shutdown-flag branch from e92c99a to 18bb7de Compare November 11, 2022 10:41
@DifferentialOrange DifferentialOrange marked this pull request as ready for review November 11, 2022 11:35
Copy link
Contributor

@GRISHNOV GRISHNOV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! LGTM

@DifferentialOrange DifferentialOrange merged commit 4975e39 into master Nov 11, 2022
@DifferentialOrange DifferentialOrange deleted the DifferentialOrange/gh-262-graceful-shutdown-flag branch November 11, 2022 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drop graceful shutdown feature flag
2 participants