Skip to content

Build DB switch mechanism #179

@0xmovses

Description

@0xmovses

Description

Before reading refer again to the L1 migration plan.

When we perform the migration, the current DB on movement branch (and all its data) need to be switched out to the latest upstream DB main. Aptos guarantees backward compatibility and this has been tested to some degree with a high success rate by @areshand.

We need to write the tooling / logic that will perform this switch, essentially upgrading the entire stateDB. This is the Phase 2 section of the L1 Migration Plan.

We then need to test it in three different environments

  1. Locally (with some basic transaction data against a fresh local movement-full node main branch)
  2. On a Testnet Mirror
  3. On a Mainnet Mirror
  4. On Real testnet

cc @radupopa369 & @nicholasflintwillow to support here on creating Mirror Environments.

Other steps should occur around before and after this DB upgrade, such as the framework upgrade. These steps are being done separately, if we have 🟢 for each of these steps we should be able to chain them into a final upgrade binary which will perform all the steps with one command. In the L1 migration plan, referred to as the meta-migrate binary. Another part of this is writing the necessary infrastructure code, to stop the old network, start the aptos-core full-node, run the meta-migrate binary / script. These infra and framework steps are not part of this issue.

  1. Define the separate sub-tasks involved in creating this tool.
  2. Implement the tool
  3. Test the tool

Success Criteria

  • Successful DB upgrade on the Mainnet Mirror
  • Successful Replay of transactions post DB upgrade from blockheight 1 of movement network

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions