unshardedrecovery

package
v0.17.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestMainImpl

func TestMainImpl(m *testing.M)

TestMainImpl creates cluster for unsharded recovery testing.

func TestRecoveryImpl

func TestRecoveryImpl(t *testing.T)

TestRecoveryImpl does following 1. create a shard with primary and replica1 only

  • run InitShardPrimary
  • insert some data

2. take a backup 3.create a recovery keyspace after first backup

  • bring up tablet_replica2 in the new keyspace
  • check that new tablet has data from backup1

4. insert more data on the primary

5. take another backup 6. create a recovery keyspace after second backup

  • bring up tablet_replica3 in the new keyspace
  • check that new tablet has data from backup2

7. check that vtgate queries work correctly

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL