Skip to content
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

Gh 587 describe tarantool migration #640

Closed
wants to merge 1 commit into from

Conversation

DHorrible
Copy link
Contributor

@DHorrible DHorrible commented Mar 5, 2020

Add new option auto_upgrade_schema (boolen) for cartridge.cfg which pass in boot_instance. It is used for upgrade schema to actual tarantool version (only for leader). The option has bean added for argparse.

I didn't forget about

  • Tests
  • Changelog
  • Documentation

Close #587

@DHorrible DHorrible requested a review from rosik March 5, 2020 15:18
Fix bugs

Add upgrade schema test for luatest

Add test

Fix test

Fix bugs and style fix

Fix remarks

Delete unnecessary file

Fix bugs

Add compitibility.upgrade_schema for CI

Fix test

Add changelog
@DHorrible DHorrible force-pushed the gh-587-describe-tarantool-migration branch from b163ae8 to e834154 Compare March 5, 2020 15:30
olegrok added a commit that referenced this pull request Mar 20, 2020
This patch introduces new type of test - "upgrade".
The main idea - try to bootstrap server with old schema version
then this changes should be applied to all replicas in replicaset.

We significant chnage from existing integration tests - we try to
do this using prepeared snaps and wals.

Need for #640
olegrok added a commit that referenced this pull request Mar 20, 2020
This patch introduces automatic schema upgrade. The main idea to
apply box.schema.upgrade on the leader instance.

We can't do it on each instance - it lead to replication
conflicts. We can't delegate it to users becouse a bug: "Space 277
doesn't exist" (tarantool/tarantool#4691)
still is not resolved.

Closes #640
olegrok added a commit that referenced this pull request Mar 20, 2020
This patch introduces new type of test - "upgrade".
The main idea - try to bootstrap server with old schema version
then this changes should be applied to all replicas in replicaset.

We significant chnage from existing integration tests - we try to
do this using prepeared snaps and wals.

Need for #640
olegrok added a commit that referenced this pull request Mar 20, 2020
This patch introduces automatic schema upgrade. The main idea to
apply box.schema.upgrade on the leader instance.

We can't do it on each instance - it lead to replication
conflicts. We can't delegate it to users becouse a bug: "Space 277
doesn't exist" (tarantool/tarantool#4691)
still is not resolved.

Closes #640
olegrok added a commit that referenced this pull request Mar 20, 2020
This patch introduces new type of test - "upgrade".
The main idea - try to bootstrap server with old schema version
then this changes should be applied to all replicas in replicaset.

We significant change from existing integration tests - we try to
do this using prepared snaps and wals.

Need for #640
olegrok added a commit that referenced this pull request Mar 20, 2020
This patch introduces automatic schema upgrade. The main idea to
apply box.schema.upgrade on the leader instance.

We can't do it on each instance - it lead to replication
conflicts. We can't delegate it to users because a bug: "Space 277
doesn't exist" (tarantool/tarantool#4691)
still is not resolved.

Closes #640
@olegrok olegrok mentioned this pull request Mar 20, 2020
3 tasks
olegrok added a commit that referenced this pull request Mar 20, 2020
This patch introduces new type of test - "upgrade".
The main idea - try to bootstrap server with old schema version
then this changes should be applied to all replicas in replicaset.

We significant change from existing integration tests - we try to
do this using prepared snaps and wals.

Need for #640
olegrok added a commit that referenced this pull request Mar 20, 2020
This patch introduces automatic schema upgrade. The main idea to
apply box.schema.upgrade on the leader instance.

We can't do it on each instance - it lead to replication
conflicts. We can't delegate it to users because a bug: "Space 277
doesn't exist" (tarantool/tarantool#4691)
still is not resolved.

Closes #640
olegrok added a commit that referenced this pull request Mar 20, 2020
This patch introduces automatic schema upgrade. The main idea to
apply box.schema.upgrade on the leader instance.

We can't do it on each instance - it lead to replication
conflicts. We can't delegate it to users because a bug: "Space 277
doesn't exist" (tarantool/tarantool#4691)
still is not resolved.

Closes #640
olegrok added a commit that referenced this pull request Mar 22, 2020
This patch introduces automatic schema upgrade. The main idea to
apply box.schema.upgrade on the leader instance.

We can't do it on each instance - it lead to replication
conflicts. We can't delegate it to users because a bug: "Space 277
doesn't exist" (tarantool/tarantool#4691)
still is not resolved.

Closes #640
olegrok added a commit that referenced this pull request Mar 23, 2020
This patch introduces new type of test - "upgrade".
The main idea - try to bootstrap server with old schema version
then this changes should be applied to all replicas in replicaset.

We significant change from existing integration tests - we try to
do this using prepared snaps and wals.

Need for #640
olegrok added a commit that referenced this pull request Mar 23, 2020
This patch introduces an option - `upgrade_schema` to perform
an upgrade procedure if we want to upgrade tarantool version.
The main idea to apply box.schema.upgrade on the leader instance.
We can't do it on each instance - it lead to replication
conflicts if we have 2 or more writable instances.

We don't do it automatically to give an ability for user to check
that instances works fine with new tarantool version but old
schema. This thesis is not relevant just now because of
"Space 277 doesn't exist" (tarantool/tarantool#4691).
But I hope it will be solved soon.

Closes #640
olegrok added a commit that referenced this pull request Mar 23, 2020
This patch introduces new type of test - "upgrade".
The main idea - try to bootstrap server with old schema version
then this changes should be applied to all replicas in replicaset.

We significant change from existing integration tests - we try to
do this using prepared snaps and wals.

Need for #640
olegrok added a commit that referenced this pull request Mar 23, 2020
This patch introduces an option - `upgrade_schema` to perform
an upgrade procedure if we want to upgrade tarantool version.
The main idea to apply box.schema.upgrade on the leader instance.
We can't do it on each instance - it lead to replication
conflicts if we have 2 or more writable instances.

We don't do it automatically to give an ability for user to check
that instances works fine with new tarantool version but old
schema. This thesis is not relevant just now because of
"Space 277 doesn't exist" (tarantool/tarantool#4691).
But I hope it will be solved soon.

Closes #640
olegrok added a commit that referenced this pull request Mar 24, 2020
This patch introduces new type of test - "upgrade".
The main idea - try to bootstrap server with old schema version
then this changes should be applied to all replicas in replicaset.

We significant change from existing integration tests - we try to
do this using prepared snaps and wals.

Need for #640
olegrok added a commit that referenced this pull request Mar 24, 2020
This patch introduces an option - `upgrade_schema` to perform
an upgrade procedure if we want to upgrade tarantool version.
The main idea to apply box.schema.upgrade on the leader instance.
We can't do it on each instance - it lead to replication
conflicts if we have 2 or more writable instances.

We don't do it automatically to give an ability for user to check
that instances works fine with new tarantool version but old
schema. This thesis is not relevant just now because of
"Space 277 doesn't exist" (tarantool/tarantool#4691).
But I hope it will be solved soon.

Closes #640
rosik pushed a commit that referenced this pull request Mar 26, 2020
This patch introduces new type of test - "upgrade".
The main idea - try to bootstrap server with old schema version
then this changes should be applied to all replicas in replicaset.

We significant change from existing integration tests - we try to
do this using prepared snaps and wals.

Need for #640
rosik pushed a commit that referenced this pull request Mar 26, 2020
This patch introduces an option - `upgrade_schema` to perform
an upgrade procedure if we want to upgrade tarantool version.
The main idea to apply box.schema.upgrade on the leader instance.
We can't do it on each instance - it lead to replication
conflicts if we have 2 or more writable instances.

We don't do it automatically to give an ability for user to check
that instances works fine with new tarantool version but old
schema. This thesis is not relevant just now because of
"Space 277 doesn't exist" (tarantool/tarantool#4691).
But I hope it will be solved soon.

Closes #640
@rosik
Copy link
Contributor

rosik commented Mar 27, 2020

Closing in favor of #671

@rosik rosik closed this Mar 27, 2020
@rosik rosik deleted the gh-587-describe-tarantool-migration branch March 27, 2020 11:59
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.

Describe tarantool 1.10->2.x migration process
2 participants