Skip to content

Commit

Permalink
settings pool is default on, change to run with false as well
Browse files Browse the repository at this point in the history
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
  • Loading branch information
harshit-gangal committed Aug 9, 2023
1 parent c19cd82 commit 8a5a023
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 2 deletions.
2 changes: 0 additions & 2 deletions go/test/endtoend/reparent/prssettingspool/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ func TestMain(m *testing.M) {
Name: keyspaceName,
SchemaSQL: schemaSQL,
}
clusterInstance.VtTabletExtraArgs = append(clusterInstance.VtTabletExtraArgs,
"--queryserver-enable-settings-pool")
err = clusterInstance.StartUnshardedKeyspace(*keyspace, 2, false)
if err != nil {
return 1
Expand Down
2 changes: 2 additions & 0 deletions go/test/endtoend/vtgate/reservedconn/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ func runAllTests(m *testing.M) int {
clusterInstance.VtTabletExtraArgs = []string{"--queryserver-config-transaction-timeout", "5"}
if enableSettingsPool {
clusterInstance.VtTabletExtraArgs = append(clusterInstance.VtTabletExtraArgs, "--queryserver-enable-settings-pool")
} else {
clusterInstance.VtTabletExtraArgs = append(clusterInstance.VtTabletExtraArgs, "--queryserver-enable-settings-pool=false")
}
if err := clusterInstance.StartKeyspace(*keyspace, []string{"-80", "80-"}, 1, false); err != nil {
return 1
Expand Down
2 changes: 2 additions & 0 deletions go/test/endtoend/vtgate/reservedconn/reconnect1/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ func runAllTests(m *testing.M) int {
}
if enableSettingsPool {
clusterInstance.VtTabletExtraArgs = append(clusterInstance.VtTabletExtraArgs, "--queryserver-enable-settings-pool")
} else {
clusterInstance.VtTabletExtraArgs = append(clusterInstance.VtTabletExtraArgs, "--queryserver-enable-settings-pool=false")
}
if err := clusterInstance.StartKeyspace(*keyspace, []string{"-80", "80-"}, 1, true); err != nil {
return 1
Expand Down
2 changes: 2 additions & 0 deletions go/test/endtoend/vtgate/reservedconn/reconnect2/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ func runAllTests(m *testing.M) int {
clusterInstance.VtTabletExtraArgs = []string{"--queryserver-config-transaction-timeout", "5"}
if enableSettingsPool {
clusterInstance.VtTabletExtraArgs = append(clusterInstance.VtTabletExtraArgs, "--queryserver-enable-settings-pool")
} else {
clusterInstance.VtTabletExtraArgs = append(clusterInstance.VtTabletExtraArgs, "--queryserver-enable-settings-pool=false")
}
if err := clusterInstance.StartKeyspace(*keyspace, []string{"-80", "80-"}, 1, true); err != nil {
return 1
Expand Down
2 changes: 2 additions & 0 deletions go/test/endtoend/vtgate/reservedconn/reconnect3/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ func runAllTests(m *testing.M) int {
}
if enableSettingsPool {
clusterInstance.VtTabletExtraArgs = append(clusterInstance.VtTabletExtraArgs, "--queryserver-enable-settings-pool")
} else {
clusterInstance.VtTabletExtraArgs = append(clusterInstance.VtTabletExtraArgs, "--queryserver-enable-settings-pool=false")
}
if err := clusterInstance.StartUnshardedKeyspace(*keyspace, 2, false); err != nil {
return 1
Expand Down
2 changes: 2 additions & 0 deletions go/test/endtoend/vtgate/reservedconn/reconnect4/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ func runAllTests(m *testing.M) int {
}
if enableSettingsPool {
clusterInstance.VtTabletExtraArgs = append(clusterInstance.VtTabletExtraArgs, "--queryserver-enable-settings-pool")
} else {
clusterInstance.VtTabletExtraArgs = append(clusterInstance.VtTabletExtraArgs, "--queryserver-enable-settings-pool=false")
}
if err := clusterInstance.StartUnshardedKeyspace(*keyspace, 2, false); err != nil {
return 1
Expand Down
2 changes: 2 additions & 0 deletions go/test/endtoend/vtgate/unsharded/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ func runAllTests(m *testing.M) int {
clusterInstance.VtTabletExtraArgs = []string{"--queryserver-config-transaction-timeout", "3", "--queryserver-config-max-result-size", "30"}
if enableSettingsPool {
clusterInstance.VtTabletExtraArgs = append(clusterInstance.VtTabletExtraArgs, "--queryserver-enable-settings-pool")
} else {
clusterInstance.VtTabletExtraArgs = append(clusterInstance.VtTabletExtraArgs, "--queryserver-enable-settings-pool=false")
}
if err := clusterInstance.StartUnshardedKeyspace(*Keyspace, 0, false); err != nil {
log.Fatal(err.Error())
Expand Down

0 comments on commit 8a5a023

Please sign in to comment.