Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions go/vt/topo/topoproto/tablet.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import (

"vitess.io/vitess/go/netutil"
"vitess.io/vitess/go/sets"
"vitess.io/vitess/go/vt/key"
"vitess.io/vitess/go/vt/vterrors"

topodatapb "vitess.io/vitess/go/vt/proto/topodata"
Expand Down Expand Up @@ -295,3 +296,24 @@ func IsServingType(tabletType topodatapb.TabletType) bool {
return false
}
}

// IsTabletWithinKeyRanges returns true if the provided tablet is within a slice of *topodatapb.KeyRange.
func IsTabletWithinKeyRanges(tablet *topodatapb.Tablet, keyRanges []*topodatapb.KeyRange) bool {
tabletKeyRange := tablet.GetKeyRange()
for _, keyRange := range keyRanges {
if key.KeyRangeContainsKeyRange(keyRange, tabletKeyRange) {
return true
}
}
return false
}

// IsTabletWithinKeyRangesString returns true if the provided tablet is within a provided string of
// one or more shard ranges. An error is returned if the shard range spec string cannot be parsed.
func IsTabletWithinKeyRangesString(tablet *topodatapb.Tablet, keyRangesString string) (bool, error) {
keyRanges, err := key.ParseShardingSpec(keyRangesString)
if err != nil {
return false, err
}
return IsTabletWithinKeyRanges(tablet, keyRanges), nil
}
28 changes: 28 additions & 0 deletions go/vt/topo/topoproto/tablet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ import (
"testing"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"vitess.io/vitess/go/vt/key"
topodatapb "vitess.io/vitess/go/vt/proto/topodata"
)

Expand Down Expand Up @@ -129,3 +131,29 @@ func TestIsTabletsInList(t *testing.T) {
})
}
}

func TestIsTabletWithinKeyRangesString(t *testing.T) {
tablet := &topodatapb.Tablet{
Keyspace: "ks",
KeyRange: key.NewKeyRange([]byte{0x00}, []byte{0x40}),
}

{
// match
found, err := IsTabletWithinKeyRangesString(tablet, "-40")
require.NoError(t, err)
require.True(t, found)
}
{
// no match
found, err := IsTabletWithinKeyRangesString(tablet, "80-")
require.NoError(t, err)
require.False(t, found)
}
{
// bad shard spec
found, err := IsTabletWithinKeyRangesString(tablet, "!!!won'tparse!!!")
require.Error(t, err)
require.False(t, found)
}
}
42 changes: 42 additions & 0 deletions go/vt/vtorc/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,17 @@
package config

import (
"fmt"
"strings"
"time"

"github.com/spf13/pflag"

"vitess.io/vitess/go/viperutil"
"vitess.io/vitess/go/vt/key"
"vitess.io/vitess/go/vt/log"
"vitess.io/vitess/go/vt/servenv"
"vitess.io/vitess/go/vt/topo/topoproto"
)

var configurationLoaded = make(chan bool)
Expand Down Expand Up @@ -412,3 +417,40 @@
func WaitForConfigurationToBeLoaded() {
<-configurationLoaded
}

// ParseClustersToWatch parses a []string of keyspace/shards to watch
// into a map of keyspaces with one or more key ranges to watch.
func ParseClustersToWatch(clustersToWatch []string) (map[string][]*topodatapb.KeyRange, error) {

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / VTop Example

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Local example using consul on Ubuntu

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Local example using etcd on Ubuntu

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Region Sharding example using etcd on Ubuntu

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / End-to-End Test

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / End-to-End Test (Race)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_godriver)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_copy_parallel)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_mariadb_to_mysql)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_concurrentdml)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_across_db_versions)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (15)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_schema)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_partial_movetables_and_materialize)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_vschema)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_cellalias)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_vindex_heavy)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (13)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_foreign_key_stress)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_readafterwrite)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_plantests)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtorc)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_gen4)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (backup_pitr_mysqlshell)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_reservedconn)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vttablet_prscomplex)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (schemadiff_vrepl)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_tablet_healthcheck_cache)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_multi_tenant)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vstream)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_transaction)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_throttler_topo)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo_etcd)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_foreignkey_stress)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_partial_keyspace)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_schema_tracker)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_v2)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_scheduler)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_tablegc)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (21)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtbackup)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_general_heavy)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_revert)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (backup_pitr)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress_suite)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (mysql80)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (ers_prs_newfeatures_heavy)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_suite)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo_consul)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (topo_connection_cache)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (18)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (mysql_server_vault)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtctlbackup_sharded_clustertest_heavy)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_vtctldclient_vdiff2_movetables_tz)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (Evalengine_Race)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_consul)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (backup_pitr_xtrabackup)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_recovery)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (12)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_backup)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Query Serving (Queries)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (mysql57)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Vitess Tester (vtgate)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (evalengine_mysql84)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (evalengine_mysql57)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_queries)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (evalengine_mysql80)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (mysql84)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Code Coverage

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_unsharded)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Online DDL flow

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Reparent Old VTTablet

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (mysql80)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Semi Sync Upgrade Downgrade Test

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_migrate)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (Race)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_basic)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Reparent Old Vtctl

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Query Serving (Queries - 2)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Java Docker Test

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Java Docker Test

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - E2E

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Static Code Checks Etc

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Static Code Checks Etc

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Static Code Checks Etc

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - Manual

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Query Serving (Schema)

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Docker Test Cluster

undefined: topodatapb

Check failure on line 423 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Docker Test Cluster

undefined: topodatapb
keyRangesByKS := make(map[string][]*topodatapb.KeyRange)

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / VTop Example

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Local example using consul on Ubuntu

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Local example using etcd on Ubuntu

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Region Sharding example using etcd on Ubuntu

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / End-to-End Test

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / End-to-End Test (Race)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_godriver)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_copy_parallel)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_mariadb_to_mysql)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_concurrentdml)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_across_db_versions)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (15)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_schema)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_partial_movetables_and_materialize)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_vschema)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_cellalias)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_vindex_heavy)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (13)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_foreign_key_stress)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_readafterwrite)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_plantests)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtorc)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_gen4)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (backup_pitr_mysqlshell)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_reservedconn)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vttablet_prscomplex)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (schemadiff_vrepl)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_tablet_healthcheck_cache)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_multi_tenant)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vstream)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_transaction)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_throttler_topo)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo_etcd)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_foreignkey_stress)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_partial_keyspace)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_schema_tracker)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_v2)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_scheduler)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_tablegc)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (21)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtbackup)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_general_heavy)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_revert)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (backup_pitr)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress_suite)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (mysql80)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (ers_prs_newfeatures_heavy)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_suite)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo_consul)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (topo_connection_cache)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (18)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (mysql_server_vault)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtctlbackup_sharded_clustertest_heavy)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_vtctldclient_vdiff2_movetables_tz)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (Evalengine_Race)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_consul)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (backup_pitr_xtrabackup)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_recovery)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (12)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_backup)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Query Serving (Queries)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (mysql57)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Vitess Tester (vtgate)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (evalengine_mysql84)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (evalengine_mysql57)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_queries)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (evalengine_mysql80)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (mysql84)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Code Coverage

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_unsharded)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Online DDL flow

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Reparent Old VTTablet

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (mysql80)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Semi Sync Upgrade Downgrade Test

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_migrate)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (Race)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_basic)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Reparent Old Vtctl

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Query Serving (Queries - 2)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Java Docker Test

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Java Docker Test

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - E2E

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Static Code Checks Etc

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Static Code Checks Etc

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Static Code Checks Etc

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - Manual

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Query Serving (Schema)

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Docker Test Cluster

undefined: topodatapb

Check failure on line 424 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Docker Test Cluster

undefined: topodatapb
for _, ks := range clustersToWatch {
if strings.Contains(ks, "/") && !strings.HasSuffix(ks, "/") {
// Validate keyspace/shard parses.
k, s, err := topoproto.ParseKeyspaceShard(ks)
if err != nil {
log.Errorf("Could not parse keyspace/shard %q: %+v", ks, err)
continue
}
if !key.IsValidKeyRange(s) {
return keyRangesByKS, fmt.Errorf("invalid key range %q while parsing clusters to watch", s)
}
// Parse the shard name into key range value.
keyRanges, err := key.ParseShardingSpec(s)
if err != nil {
return keyRangesByKS, fmt.Errorf("could not parse shard name %q: %+v", s, err)
}
keyRangesByKS[k] = append(shardsToWatch[k], keyRanges...)

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / VTop Example

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Local example using consul on Ubuntu

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Local example using etcd on Ubuntu

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Region Sharding example using etcd on Ubuntu

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / End-to-End Test

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / End-to-End Test (Race)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_godriver)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_copy_parallel)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_mariadb_to_mysql)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_concurrentdml)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_across_db_versions)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (15)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_schema)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_partial_movetables_and_materialize)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_vschema)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_cellalias)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_vindex_heavy)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (13)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_foreign_key_stress)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_readafterwrite)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_plantests)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtorc)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_gen4)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (backup_pitr_mysqlshell)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_reservedconn)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vttablet_prscomplex)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (schemadiff_vrepl)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_tablet_healthcheck_cache)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_multi_tenant)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vstream)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_transaction)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_throttler_topo)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo_etcd)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_foreignkey_stress)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_partial_keyspace)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_schema_tracker)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_v2)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_scheduler)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_tablegc)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (21)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtbackup)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_general_heavy)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_revert)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (backup_pitr)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress_suite)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (mysql80)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (ers_prs_newfeatures_heavy)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_suite)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo_consul)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (topo_connection_cache)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (18)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (mysql_server_vault)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtctlbackup_sharded_clustertest_heavy)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_vtctldclient_vdiff2_movetables_tz)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (Evalengine_Race)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_consul)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (backup_pitr_xtrabackup)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_recovery)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (12)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_backup)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Query Serving (Queries)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (mysql57)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Vitess Tester (vtgate)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (evalengine_mysql84)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (evalengine_mysql57)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_queries)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (evalengine_mysql80)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (mysql84)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Code Coverage

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_unsharded)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Online DDL flow

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Reparent Old VTTablet

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (mysql80)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Semi Sync Upgrade Downgrade Test

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_migrate)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (Race)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_basic)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Reparent Old Vtctl

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Query Serving (Queries - 2)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Java Docker Test

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Java Docker Test

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - E2E

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Static Code Checks Etc

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Static Code Checks Etc

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Static Code Checks Etc

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - Manual

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Query Serving (Schema)

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Docker Test Cluster

undefined: shardsToWatch

Check failure on line 441 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Docker Test Cluster

undefined: shardsToWatch
} else {
// Remove trailing slash if exists.
ks = strings.TrimSuffix(ks, "/")
// We store the entire range of key range if nothing is specified.
keyRangesByKS[ks] = []*topodatapb.KeyRange{key.NewCompleteKeyRange()}

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / VTop Example

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Local example using consul on Ubuntu

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Local example using etcd on Ubuntu

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Region Sharding example using etcd on Ubuntu

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / End-to-End Test

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / End-to-End Test (Race)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_godriver)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_copy_parallel)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_mariadb_to_mysql)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_concurrentdml)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_across_db_versions)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (15)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_schema)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_partial_movetables_and_materialize)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_vschema)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_cellalias)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_vindex_heavy)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (13)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_foreign_key_stress)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_readafterwrite)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_plantests)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtorc)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_gen4)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (backup_pitr_mysqlshell)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_reservedconn)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vttablet_prscomplex)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (schemadiff_vrepl)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_tablet_healthcheck_cache)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_multi_tenant)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vstream)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_transaction)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_throttler_topo)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo_etcd)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_foreignkey_stress)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_partial_keyspace)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_schema_tracker)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_v2)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_scheduler)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_tablegc)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (21)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtbackup)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_general_heavy)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_revert)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (backup_pitr)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress_suite)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (mysql80)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (ers_prs_newfeatures_heavy)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_suite)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo_consul)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (topo_connection_cache)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (18)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (mysql_server_vault)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtctlbackup_sharded_clustertest_heavy)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_vtctldclient_vdiff2_movetables_tz)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (Evalengine_Race)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_consul)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (backup_pitr_xtrabackup)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_recovery)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (12)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_backup)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Query Serving (Queries)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (mysql57)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Vitess Tester (vtgate)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (evalengine_mysql84)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (evalengine_mysql57)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_queries)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (evalengine_mysql80)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (mysql84)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Code Coverage

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_unsharded)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Online DDL flow

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Reparent Old VTTablet

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (mysql80)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Semi Sync Upgrade Downgrade Test

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_migrate)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (Race)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_basic)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Reparent Old Vtctl

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Query Serving (Queries - 2)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Java Docker Test

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Java Docker Test

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - E2E

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Static Code Checks Etc

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Static Code Checks Etc

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Static Code Checks Etc

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - Manual

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Query Serving (Schema)

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Docker Test Cluster

undefined: topodatapb

Check failure on line 446 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Docker Test Cluster

undefined: topodatapb
}
}
return keyRangesByKS, nil
}

// ParseClustersToWatchString parses a string of keyspace/shards to watch
// into a map of keyspaces with one or more key ranges to watch.
func ParseClustersToWatchString(clustersToWatch string) (map[string][]*topodatapb.KeyRange, error) {

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / VTop Example

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Local example using consul on Ubuntu

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Local example using etcd on Ubuntu

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Region Sharding example using etcd on Ubuntu

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / End-to-End Test

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / End-to-End Test (Race)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_godriver)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_copy_parallel)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_mariadb_to_mysql)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_concurrentdml)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_across_db_versions)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (15)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_schema)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_partial_movetables_and_materialize)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_vschema)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_cellalias)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_vindex_heavy)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (13)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_foreign_key_stress)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_readafterwrite)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_plantests)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtorc)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_gen4)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (backup_pitr_mysqlshell)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_reservedconn)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vttablet_prscomplex)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (schemadiff_vrepl)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_tablet_healthcheck_cache)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_multi_tenant)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vstream)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_transaction)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_throttler_topo)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo_etcd)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_foreignkey_stress)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_partial_keyspace)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_schema_tracker)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_v2)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_scheduler)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_tablegc)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (21)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtbackup)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_general_heavy)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_revert)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (backup_pitr)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress_suite)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (mysql80)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (ers_prs_newfeatures_heavy)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_suite)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo_consul)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (topo_connection_cache)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (18)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (mysql_server_vault)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtctlbackup_sharded_clustertest_heavy)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_vtctldclient_vdiff2_movetables_tz)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (Evalengine_Race)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_consul)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (backup_pitr_xtrabackup)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_recovery)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (12)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_backup)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Query Serving (Queries)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (mysql57)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Vitess Tester (vtgate)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (evalengine_mysql84)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (evalengine_mysql57)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_queries)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (evalengine_mysql80)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (mysql84)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Code Coverage

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_unsharded)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Online DDL flow

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Reparent Old VTTablet

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (mysql80)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Semi Sync Upgrade Downgrade Test

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_migrate)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Unit Test (Race)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_basic)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Reparent Old Vtctl

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Query Serving (Queries - 2)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Java Docker Test

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Java Docker Test

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - E2E

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Static Code Checks Etc

undefined: topodatapb) (typecheck)

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Static Code Checks Etc

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - Manual

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Query Serving (Schema)

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Docker Test Cluster

undefined: topodatapb

Check failure on line 454 in go/vt/vtorc/config/config.go

View workflow job for this annotation

GitHub Actions / Docker Test Cluster

undefined: topodatapb
return ParseClustersToWatch(strings.Split(clustersToWatch, ","))
}
50 changes: 10 additions & 40 deletions go/vt/vtorc/logic/tablet_discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import (
"context"
"errors"
"fmt"
"slices"
"strings"
"sync"
Expand All @@ -32,7 +31,6 @@

"vitess.io/vitess/go/stats"
"vitess.io/vitess/go/vt/external/golib/sqlutils"
"vitess.io/vitess/go/vt/key"
"vitess.io/vitess/go/vt/log"
topodatapb "vitess.io/vitess/go/vt/proto/topodata"
"vitess.io/vitess/go/vt/topo"
Expand Down Expand Up @@ -103,35 +101,14 @@

// initializeShardsToWatch parses the --clusters_to_watch flag-value
// into a map of keyspace/shards.
func initializeShardsToWatch() error {
shardsToWatch = make(map[string][]*topodatapb.KeyRange)
func initializeShardsToWatch() (err error) {
if len(clustersToWatch) == 0 {
return nil
}

for _, ks := range clustersToWatch {
if strings.Contains(ks, "/") && !strings.HasSuffix(ks, "/") {
// Validate keyspace/shard parses.
k, s, err := topoproto.ParseKeyspaceShard(ks)
if err != nil {
log.Errorf("Could not parse keyspace/shard %q: %+v", ks, err)
continue
}
if !key.IsValidKeyRange(s) {
return fmt.Errorf("invalid key range %q while parsing clusters to watch", s)
}
// Parse the shard name into key range value.
keyRanges, err := key.ParseShardingSpec(s)
if err != nil {
return fmt.Errorf("could not parse shard name %q: %+v", s, err)
}
shardsToWatch[k] = append(shardsToWatch[k], keyRanges...)
} else {
// Remove trailing slash if exists.
ks = strings.TrimSuffix(ks, "/")
// We store the entire range of key range if nothing is specified.
shardsToWatch[ks] = []*topodatapb.KeyRange{key.NewCompleteKeyRange()}
}
shardsToWatch, err = config.ParseClustersToWatch(clustersToWatch)
if err != nil {
return err
}

if len(shardsToWatch) == 0 {
Expand All @@ -140,27 +117,20 @@
return nil
}

// shouldWatchTablet checks if the given tablet is part of the watch list.
func shouldWatchTablet(tablet *topodatapb.Tablet) bool {
// IsIncluded checks if the given tablet is part of the watch list.
func (s shardsToWatchMap) IsIncluded(tablet *topodatapb.Tablet) bool {

Check failure on line 121 in go/vt/vtorc/logic/tablet_discovery.go

View workflow job for this annotation

GitHub Actions / Static Code Checks Etc

undefined: shardsToWatchMap
// If we are watching all keyspaces, then we want to watch this tablet too.
if len(shardsToWatch) == 0 {
if len(s) == 0 {
return true
}
shardRanges, ok := shardsToWatch[tablet.GetKeyspace()]
shardRanges, ok := s[tablet.GetKeyspace()]
// If we don't have the keyspace in our map, then this tablet
// doesn't need to be watched.
if !ok {
return false
}
// Get the tablet's key range, and check if
// it is part of the shard ranges we are watching.
kr := tablet.GetKeyRange()
for _, shardRange := range shardRanges {
if key.KeyRangeContainsKeyRange(shardRange, kr) {
return true
}
}
return false
// Check if tablet is part of the shard ranges we are watching.
return topoproto.IsTabletWithinKeyRanges(tablet, shardRanges)
}

// OpenTabletDiscovery opens the vitess topo if enables and returns a ticker
Expand Down Expand Up @@ -249,7 +219,7 @@
matchedTablets := make([]*topo.TabletInfo, 0, len(tablets))
func() {
for _, t := range tablets {
if shouldWatchTablet(t.Tablet) {

Check failure on line 222 in go/vt/vtorc/logic/tablet_discovery.go

View workflow job for this annotation

GitHub Actions / Static Code Checks Etc

undefined: shouldWatchTablet
matchedTablets = append(matchedTablets, t)
}
}
Expand Down
Loading