Skip to content

Commit

Permalink
Cherry-pick adac810 with conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
vitess-bot[bot] committed Sep 20, 2023
1 parent d2d8bf1 commit d93e3ba
Show file tree
Hide file tree
Showing 3 changed files with 194 additions and 11 deletions.
17 changes: 17 additions & 0 deletions go/test/endtoend/tabletmanager/tablegc/tablegc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package tablegc
import (
"context"
"flag"
"fmt"
"os"
"testing"
"time"
Expand Down Expand Up @@ -415,3 +416,19 @@ func TestPurgeView(t *testing.T) {
validateTableExists(t, "t1")
validateAnyState(t, 1024, schema.EvacTableGCState, schema.DropTableGCState, schema.TableDroppedGCState)
}

func TestDropView(t *testing.T) {
viewName, err := schema.GenerateGCTableName(schema.DropTableGCState, time.Now().Add(tableTransitionExpiration)) // shortly in the future
require.NoError(t, err)
createStatement := fmt.Sprintf("create or replace view %s as select 1", viewName)

_, err = primaryTablet.VttabletProcess.QueryTablet(createStatement, keyspaceName, true)
require.NoError(t, err)

// view should be there, because the timestamp hint is still in the near future.
validateTableExists(t, viewName)

time.Sleep(tableTransitionExpiration / 2)
// But by now, after the above sleep, the view's timestamp hint is in the past, and we expect TableGC to have dropped the view.
validateTableDoesNotExist(t, viewName)
}
101 changes: 90 additions & 11 deletions go/vt/vttablet/tabletserver/gc/tablegc.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,15 @@ var (
sqlPurgeTable = `delete from %a limit 50`
sqlShowVtTables = `show full tables like '\_vt\_%'`
sqlDropTable = "drop table if exists `%a`"
sqlDropView = "drop view if exists `%a`"
purgeReentranceFlag int64
)

type gcTable struct {
tableName string
isBaseTable bool
}

// transitionRequest encapsulates a request to transition a table to next state
type transitionRequest struct {
fromTableName string
Expand Down Expand Up @@ -238,6 +244,14 @@ func (collector *TableGC) Close() {
// Operate is the main entry point for the table garbage collector operation and logic.
func (collector *TableGC) Operate(ctx context.Context) {

<<<<<<< HEAD

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_vschema)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (topo_connection_cache)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress) mysql57

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Region Sharding example using etcd on ubuntu-latest

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_concurrentdml)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_basic)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_revert)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vstream_stoponreshard_false)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_godriver)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtbackup_transform)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_suite)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (mysql80)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_readafterwrite)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_throttler_custom_config)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_scheduler)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_ghost)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / test

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress_suite) mysql57

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_partial_keyspace)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_backup)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl) mysql57

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_revertible)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo_consul)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_backup) mysql57

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_recovery)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Local example using k8s on ubuntu-latest

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_throttler)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_schema_tracker)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtctlbackup_sharded_clustertest_heavy)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress_suite)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (ers_prs_newfeatures_heavy)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vttablet_prscomplex)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (22)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_tablegc)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo_etcd)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_gen4)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / End-to-End Test

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (13)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_singleton)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vstream_failover)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtorc)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_migrate_vdiff2_convert_tz)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (12)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_transaction)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Local example using etcd on ubuntu-latest

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_recovery) mysql57

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Local example using consul on ubuntu-latest

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_tablet_healthcheck_cache)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (schemadiff_vrepl) mysql57

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vstream_with_keyspaces_to_watch)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_revertible) mysql57

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_unsharded)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_v2)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_singleton) mysql57

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_across_db_versions)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_vindex_heavy)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_revert) mysql57

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_ghost) mysql57

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_schema)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtorc) mysql57

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (21)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (schemadiff_vrepl)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (15)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_declarative) mysql57

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_general_heavy)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_declarative)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_scheduler) mysql57

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vstream_stoponreshard_true)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_queries)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_multicell)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_cellalias)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

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

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_reservedconn)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (18)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_consul)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_tablegc) mysql57

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / test

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (mysql_server_vault)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Unit Test (Race)

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_suite) mysql57

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Reparent Old VTTablet

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / test

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - E2E

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - Manual - Next Release

syntax error: unexpected <<, expected }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - E2E - Next Release

syntax error: unexpected <<, expected }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Reparent Old Vtctl

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Reparent New Vtctl

syntax error: unexpected <<, expected }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - Manual

syntax error: unexpected <<, expecting }

Check failure on line 247 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

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

syntax error: unexpected <<, expected }
=======
dropTablesChan := make(chan *gcTable)
purgeRequestsChan := make(chan bool)
transitionRequestsChan := make(chan *transitionRequest)

tickers := [](*timer.SuspendableTicker){}
>>>>>>> adac81020c (TableGC: support DROP VIEW (#14020))

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_vschema)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (topo_connection_cache)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress) mysql57

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Region Sharding example using etcd on ubuntu-latest

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_concurrentdml)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_basic)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_revert)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vstream_stoponreshard_false)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_godriver)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtbackup_transform)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_suite)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (mysql80)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_readafterwrite)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_throttler_custom_config)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_scheduler)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_ghost)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / test

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress_suite) mysql57

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_partial_keyspace)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_backup)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl) mysql57

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_revertible)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo_consul)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_backup) mysql57

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_recovery)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Local example using k8s on ubuntu-latest

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_throttler)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_schema_tracker)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtctlbackup_sharded_clustertest_heavy)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress_suite)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (ers_prs_newfeatures_heavy)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vttablet_prscomplex)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (22)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_tablegc)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo_etcd)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_gen4)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / End-to-End Test

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (13)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_singleton)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vstream_failover)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtorc)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_migrate_vdiff2_convert_tz)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (12)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_transaction)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Local example using etcd on ubuntu-latest

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_recovery) mysql57

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Local example using consul on ubuntu-latest

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_tablet_healthcheck_cache)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (schemadiff_vrepl) mysql57

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vstream_with_keyspaces_to_watch)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_revertible) mysql57

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_unsharded)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_v2)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_singleton) mysql57

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_across_db_versions)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_vindex_heavy)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_revert) mysql57

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_ghost) mysql57

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_schema)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtorc) mysql57

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (21)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (schemadiff_vrepl)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (15)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_declarative) mysql57

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_general_heavy)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_declarative)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_scheduler) mysql57

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vstream_stoponreshard_true)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_queries)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_multicell)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_cellalias)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

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

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_reservedconn)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (18)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_consul)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_tablegc) mysql57

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / test

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (mysql_server_vault)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Unit Test (Race)

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_suite) mysql57

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Reparent Old VTTablet

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / test

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - E2E

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - Manual - Next Release

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - E2E - Next Release

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Reparent Old Vtctl

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Reparent New Vtctl

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - Manual

invalid character U+0023 '#'

Check failure on line 254 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

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

invalid character U+0023 '#'
addTicker := func(d time.Duration) *timer.SuspendableTicker {

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_vschema)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (topo_connection_cache)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress) mysql57

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Region Sharding example using etcd on ubuntu-latest

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_concurrentdml)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_basic)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_revert)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vstream_stoponreshard_false)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_godriver)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtbackup_transform)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_suite)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (mysql80)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_readafterwrite)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_throttler_custom_config)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_scheduler)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_ghost)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / test

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress_suite) mysql57

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_partial_keyspace)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_backup)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl) mysql57

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_revertible)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo_consul)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_backup) mysql57

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_recovery)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Local example using k8s on ubuntu-latest

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_throttler)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_schema_tracker)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtctlbackup_sharded_clustertest_heavy)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress_suite)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (ers_prs_newfeatures_heavy)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vttablet_prscomplex)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (22)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_tablegc)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo_etcd)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_gen4)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / End-to-End Test

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (13)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_singleton)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vstream_failover)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtorc)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_migrate_vdiff2_convert_tz)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (12)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_transaction)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Local example using etcd on ubuntu-latest

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_recovery) mysql57

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Local example using consul on ubuntu-latest

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_tablet_healthcheck_cache)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (schemadiff_vrepl) mysql57

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vstream_with_keyspaces_to_watch)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_revertible) mysql57

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_unsharded)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_v2)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_singleton) mysql57

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_across_db_versions)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_vindex_heavy)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_revert) mysql57

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_ghost) mysql57

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_schema)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtorc) mysql57

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (21)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (schemadiff_vrepl)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (15)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_declarative) mysql57

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_general_heavy)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_declarative)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_scheduler) mysql57

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vstream_stoponreshard_true)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_queries)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_multicell)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_cellalias)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

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

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_reservedconn)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (18)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_consul)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_tablegc) mysql57

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / test

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (mysql_server_vault)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Unit Test (Race)

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_suite) mysql57

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Reparent Old VTTablet

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / test

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - E2E

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - Manual - Next Release

syntax error: unexpected *, expected name

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - E2E - Next Release

syntax error: unexpected *, expected name

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Reparent Old Vtctl

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Reparent New Vtctl

syntax error: unexpected *, expected name

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - Manual

syntax error: unexpected *, expecting name or (

Check failure on line 255 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

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

syntax error: unexpected *, expected name
collector.initMutex.Lock()
defer collector.initMutex.Unlock()
Expand Down Expand Up @@ -282,7 +296,16 @@ func (collector *TableGC) Operate(ctx context.Context) {
}
case <-tableCheckTicker.C:
{
<<<<<<< HEAD
_ = collector.checkTables(ctx)
=======
log.Info("TableGC: tableCheckTicker")
if gcTables, err := collector.readTables(ctx); err != nil {
log.Errorf("TableGC: error while reading tables: %+v", err)
} else {
_ = collector.checkTables(ctx, gcTables, dropTablesChan, transitionRequestsChan)
}
>>>>>>> adac81020c (TableGC: support DROP VIEW (#14020))

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_vschema)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (topo_connection_cache)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress) mysql57

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Region Sharding example using etcd on ubuntu-latest

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_concurrentdml)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_basic)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_revert)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vstream_stoponreshard_false)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_godriver)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtbackup_transform)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_suite)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (mysql80)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_readafterwrite)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_throttler_custom_config)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_scheduler)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_ghost)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / test

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress_suite) mysql57

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_partial_keyspace)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_backup)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl) mysql57

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_revertible)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo_consul)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_backup) mysql57

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_recovery)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Local example using k8s on ubuntu-latest

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_throttler)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_schema_tracker)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtctlbackup_sharded_clustertest_heavy)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress_suite)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (ers_prs_newfeatures_heavy)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vttablet_prscomplex)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (22)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_tablegc)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo_etcd)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_gen4)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / End-to-End Test

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (13)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_singleton)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vstream_failover)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtorc)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_migrate_vdiff2_convert_tz)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (12)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_transaction)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Local example using etcd on ubuntu-latest

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_recovery) mysql57

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Local example using consul on ubuntu-latest

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_tablet_healthcheck_cache)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (schemadiff_vrepl) mysql57

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vstream_with_keyspaces_to_watch)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_revertible) mysql57

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_unsharded)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_v2)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_singleton) mysql57

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_across_db_versions)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_vindex_heavy)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_revert) mysql57

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_ghost) mysql57

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_schema)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtorc) mysql57

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (21)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (schemadiff_vrepl)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (15)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_declarative) mysql57

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_general_heavy)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_declarative)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_scheduler) mysql57

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vstream_stoponreshard_true)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_queries)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_multicell)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_cellalias)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

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

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_reservedconn)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (18)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_consul)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_tablegc) mysql57

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / test

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (mysql_server_vault)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Unit Test (Race)

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_suite) mysql57

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Reparent Old VTTablet

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / test

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - E2E

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - Manual - Next Release

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - E2E - Next Release

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Reparent Old Vtctl

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Reparent New Vtctl

invalid character U+0023 '#'

Check failure on line 308 in go/vt/vttablet/tabletserver/gc/tablegc.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - Manual

invalid character U+0023 '#'
}
case <-purgeReentranceTicker.C:
{
Expand All @@ -297,10 +320,18 @@ func (collector *TableGC) Operate(ctx context.Context) {
}
}()
}
<<<<<<< HEAD
case dropTableName := <-collector.dropTablesChan:
{
if err := collector.dropTable(ctx, dropTableName); err != nil {
log.Errorf("TableGC: error dropping table %s: %+v", dropTableName, err)
=======
case dropTable := <-dropTablesChan:
{
log.Infof("TableGC: found %v in dropTablesChan", dropTable.tableName)
if err := collector.dropTable(ctx, dropTable.tableName, dropTable.isBaseTable); err != nil {
log.Errorf("TableGC: error dropping table %s: %+v", dropTable.tableName, err)
>>>>>>> adac81020c (TableGC: support DROP VIEW (#14020))
}
}
case transition := <-collector.transitionRequestsChan:
Expand Down Expand Up @@ -383,33 +414,49 @@ func (collector *TableGC) shouldTransitionTable(tableName string) (shouldTransit
return true, state, uuid, nil
}

<<<<<<< HEAD
// checkTables looks for potential GC tables in the MySQL server+schema.
// It lists _vt_% tables, then filters through those which are due-date.
// It then applies the necessary operation per table.
func (collector *TableGC) checkTables(ctx context.Context) error {
if atomic.LoadInt64(&collector.isPrimary) == 0 {
return nil
}
=======
// readTables reads the list of _vt_% tables from the database
func (collector *TableGC) readTables(ctx context.Context) (gcTables []*gcTable, err error) {
log.Infof("TableGC: read tables")
>>>>>>> adac81020c (TableGC: support DROP VIEW (#14020))

conn, err := collector.pool.Get(ctx, nil)
if err != nil {
return err
return nil, err
}
defer conn.Recycle()

log.Infof("TableGC: check tables")

res, err := conn.Exec(ctx, sqlShowVtTables, math.MaxInt32, true)
if err != nil {
return err
return nil, err
}

for _, row := range res.Rows {
tableName := row[0].ToString()
tableType := row[1].ToString()
isBaseTable := (tableType == "BASE TABLE")
gcTables = append(gcTables, &gcTable{tableName: tableName, isBaseTable: isBaseTable})
}
return gcTables, nil
}

// checkTables looks for potential GC tables in the MySQL server+schema.
// It lists _vt_% tables, then filters through those which are due-date.
// It then applies the necessary operation per table.
func (collector *TableGC) checkTables(ctx context.Context, gcTables []*gcTable, dropTablesChan chan<- *gcTable, transitionRequestsChan chan<- *transitionRequest) error {
log.Infof("TableGC: check tables")

shouldTransition, state, uuid, err := collector.shouldTransitionTable(tableName)
for i := range gcTables {
table := gcTables[i] // we capture as local variable as we will later use this in a goroutine
shouldTransition, state, uuid, err := collector.shouldTransitionTable(table.tableName)

if err != nil {
log.Errorf("TableGC: error while checking tables: %+v", err)
Expand All @@ -420,28 +467,51 @@ func (collector *TableGC) checkTables(ctx context.Context) error {
continue
}

log.Infof("TableGC: will operate on table %s", tableName)
log.Infof("TableGC: will operate on table %s", table.tableName)

if state == schema.HoldTableGCState {
// Hold period expired. Moving to next state
<<<<<<< HEAD
collector.submitTransitionRequest(ctx, state, tableName, isBaseTable, uuid)
=======
collector.submitTransitionRequest(ctx, transitionRequestsChan, state, table.tableName, table.isBaseTable, uuid)
>>>>>>> adac81020c (TableGC: support DROP VIEW (#14020))
}
if state == schema.PurgeTableGCState {
if isBaseTable {
if table.isBaseTable {
// This table needs to be purged. Make sure to enlist it (we may already have)
<<<<<<< HEAD
collector.addPurgingTable(tableName)
} else {
// This is a view. We don't need to delete rows from views. Just transition into next phase
collector.submitTransitionRequest(ctx, state, tableName, isBaseTable, uuid)
=======
if !collector.addPurgingTable(table.tableName) {
collector.submitTransitionRequest(ctx, transitionRequestsChan, state, table.tableName, table.isBaseTable, uuid)
}
} else {
// This is a view. We don't need to delete rows from views. Just transition into next phase
collector.submitTransitionRequest(ctx, transitionRequestsChan, state, table.tableName, table.isBaseTable, uuid)
>>>>>>> adac81020c (TableGC: support DROP VIEW (#14020))
}
}
if state == schema.EvacTableGCState {
// This table was in EVAC state for the required period. It will transition into DROP state
<<<<<<< HEAD
collector.submitTransitionRequest(ctx, state, tableName, isBaseTable, uuid)
}
if state == schema.DropTableGCState {
// This table needs to be dropped immediately.
go func() { collector.dropTablesChan <- tableName }()
=======
collector.submitTransitionRequest(ctx, transitionRequestsChan, state, table.tableName, table.isBaseTable, uuid)
}
if state == schema.DropTableGCState {
// This table needs to be dropped immediately.
go func() {
dropTablesChan <- table
}()
>>>>>>> adac81020c (TableGC: support DROP VIEW (#14020))
}
}

Expand Down Expand Up @@ -542,25 +612,34 @@ func (collector *TableGC) purge(ctx context.Context) (tableName string, err erro

// dropTable runs an actual DROP TABLE statement, and marks the end of the line for the
// tables' GC lifecycle.
<<<<<<< HEAD
func (collector *TableGC) dropTable(ctx context.Context, tableName string) error {
if atomic.LoadInt64(&collector.isPrimary) == 0 {
return nil
}

conn, err := collector.pool.Get(ctx, nil)
=======
func (collector *TableGC) dropTable(ctx context.Context, tableName string, isBaseTable bool) error {
conn, err := dbconnpool.NewDBConnection(ctx, collector.env.Config().DB.DbaWithDB())
>>>>>>> adac81020c (TableGC: support DROP VIEW (#14020))
if err != nil {
return err
}
defer conn.Recycle()
defer conn.Close()

parsed := sqlparser.BuildParsedQuery(sqlDropTable, tableName)
sqlDrop := sqlDropTable
if !isBaseTable {
sqlDrop = sqlDropView
}
parsed := sqlparser.BuildParsedQuery(sqlDrop, tableName)

log.Infof("TableGC: dropping table: %s", tableName)
_, err = conn.Exec(ctx, parsed.Query, 1, true)
_, err = conn.ExecuteFetch(parsed.Query, 1, false)
if err != nil {
return err
}
log.Infof("TableGC: dropped table: %s", tableName)
log.Infof("TableGC: dropped table: %s, isBaseTable: %v", tableName, isBaseTable)
return nil
}

Expand Down
87 changes: 87 additions & 0 deletions go/vt/vttablet/tabletserver/gc/tablegc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ limitations under the License.
package gc

import (
"context"
"testing"
"time"

"vitess.io/vitess/go/vt/schema"

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

func TestNextTableToPurge(t *testing.T) {
Expand Down Expand Up @@ -219,3 +222,87 @@ func TestShouldTransitionTable(t *testing.T) {
}
}
}

func TestCheckTables(t *testing.T) {
collector := &TableGC{
isOpen: 0,
purgingTables: map[string]bool{},
}
var err error
collector.lifecycleStates, err = schema.ParseGCLifecycle("hold,purge,evac,drop")
require.NoError(t, err)

gcTables := []*gcTable{
{
tableName: "_vt_something_that_isnt_a_gc_table",
isBaseTable: true,
},
{
tableName: "_vt_HOLD_11111111111111111111111111111111_20990920093324", // 2099 is in the far future
isBaseTable: true,
},
{
tableName: "_vt_HOLD_22222222222222222222222222222222_20200920093324",
isBaseTable: true,
},
{
tableName: "_vt_DROP_33333333333333333333333333333333_20200919083451",
isBaseTable: true,
},
{
tableName: "_vt_DROP_44444444444444444444444444444444_20200919083451",
isBaseTable: false,
},
}
// one gcTable above is irrelevant, does not have a GC table name
// one will not transition: its date is 2099
expectResponses := len(gcTables) - 2
expectDropTables := []*gcTable{
{
tableName: "_vt_DROP_33333333333333333333333333333333_20200919083451",
isBaseTable: true,
},
{
tableName: "_vt_DROP_44444444444444444444444444444444_20200919083451",
isBaseTable: false,
},
}
expectTransitionRequests := []*transitionRequest{
{
fromTableName: "_vt_HOLD_22222222222222222222222222222222_20200920093324",
isBaseTable: true,
toGCState: schema.PurgeTableGCState,
uuid: "22222222222222222222222222222222",
},
}

ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
defer cancel()
dropTablesChan := make(chan *gcTable)
transitionRequestsChan := make(chan *transitionRequest)

err = collector.checkTables(ctx, gcTables, dropTablesChan, transitionRequestsChan)
assert.NoError(t, err)

var responses int
var foundDropTables []*gcTable
var foundTransitionRequests []*transitionRequest
for {
if responses == expectResponses {
break
}
select {
case <-ctx.Done():
assert.FailNow(t, "timeout")
return
case gcTable := <-dropTablesChan:
responses++
foundDropTables = append(foundDropTables, gcTable)
case request := <-transitionRequestsChan:
responses++
foundTransitionRequests = append(foundTransitionRequests, request)
}
}
assert.ElementsMatch(t, expectDropTables, foundDropTables)
assert.ElementsMatch(t, expectTransitionRequests, foundTransitionRequests)
}

0 comments on commit d93e3ba

Please sign in to comment.