Skip to content

abstract: fix switch in_replicaset value #186

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 5 commits into from
Aug 31, 2022

Conversation

oleg-jukovec
Copy link
Collaborator

@oleg-jukovec oleg-jukovec commented Aug 29, 2022

Execution of non-yielding DDL statements in transactions has been allowed only since Tarantool 2.2.1 [1]. We should avoid using DDL statements in transactions for older versions.

  1. tarantool/tarantool@f266559

Closes #185

This patchset includes a few fixes, mostly typos. So I recommend to review commits one by one. I can extract it into a separate pull request, if you wish, but the fixes are really small.

`running` state should switch to `ending` if rw->ro case.
This test failed due to the use of undeclared variables. The patch
makes these variables local.
@oleg-jukovec oleg-jukovec force-pushed the oleg-jukovec/gh-185-fix-ddl-usage branch from 7440c00 to 48a4dc6 Compare August 29, 2022 17:03
Copy link
Member

@0x501D 0x501D left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@LeonidVas LeonidVas left a comment

Choose a reason for hiding this comment

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

Hi! Thank you for the patchset.
Good catch.
About commit messages:

  • "abstract: error if failed to create a temp tube" -> "abstract: throw an error if failed to create a temp tube"
  • "The create_table method returns" -> "The create_tube method returns"
  • "fix: switch in_replicaset value with tnt < 2.2.1" - "fix" not is a subsystem.

The create_tube method returns a tube or throws an error in almost
all cases. It is unexpected that only in one case it returns nil
and writes an error message into a log.

The patch unifies the behavior of this method.
@oleg-jukovec oleg-jukovec force-pushed the oleg-jukovec/gh-185-fix-ddl-usage branch from 48a4dc6 to 5c1e839 Compare August 30, 2022 22:06
@oleg-jukovec
Copy link
Collaborator Author

oleg-jukovec commented Aug 30, 2022

About commit messages:
* "abstract: error if failed to create a temp tube" -> "abstract: throw an error if failed to create a temp tube"
* "The create_table method returns" -> "The create_tube method returns"
* "fix: switch in_replicaset value with tnt < 2.2.1" - "fix" not is a subsystem.

Thank you, I've tried to do the best:

https://github.com/tarantool/tarantool/wiki/Code-review-procedure#commit-message

@oleg-jukovec oleg-jukovec force-pushed the oleg-jukovec/gh-185-fix-ddl-usage branch from 5c1e839 to c86c21e Compare August 30, 2022 22:42
Execution of non-yielding DDL statements in transactions has been
allowed only since Tarantool 2.2.1 [1]. We should avoid using DDL
statements in transactions for older versions.

1. tarantool/tarantool@f266559

Closes #185
@oleg-jukovec oleg-jukovec changed the title fix: switch in_replicaset value with tnt < 2.2.1 abstract: fix switch in_replicaset value Aug 30, 2022
Copy link
Contributor

@LeonidVas LeonidVas left a comment

Choose a reason for hiding this comment

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

LGTM

@LeonidVas LeonidVas merged commit 886f363 into master Aug 31, 2022
@LeonidVas LeonidVas deleted the oleg-jukovec/gh-185-fix-ddl-usage branch August 31, 2022 08:27
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.

Unable to queue.cfg{in_replicaset = true} with Tarantool 1.10
3 participants