Skip to content

Commit

Permalink
[fix](regression) Fix some p0 case (apache#45333)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?


fix `test_partial_update_2pc_schema_change` and
`test_f_2pc_schema_change` case due to changes in
apache#45211
  • Loading branch information
bobhan1 authored and shuke987 committed Dec 23, 2024
1 parent b68edac commit 3be7eb4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ suite("test_partial_update_2pc_schema_change", "p0") {

String db = context.config.getDbNameByFile(context.file)
sql "select 1;" // to create database

def user = context.config.jdbcUser
def password = context.config.jdbcPassword
for (def use_row_store : [false, true]) {
logger.info("current params: use_row_store: ${use_row_store}")

connect( context.config.jdbcUser, context.config.jdbcPassword, context.config.jdbcUrl) {
connect( user, password, context.config.jdbcUrl) {
sql "use ${db};"

def tableName = "test_partial_update_2pc_schema_change"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,15 @@ import org.apache.http.util.EntityUtils
suite("test_f_2pc_schema_change", "p0") {
String db = context.config.getDbNameByFile(context.file)
sql "select 1;" // to create database

def user = context.config.jdbcUser
def password = context.config.jdbcPassword
if (isCloudMode()) {
return
}

for (def use_row_store : [false, true]) {
logger.info("current params: use_row_store: ${use_row_store}")
connect( context.config.jdbcUser, context.config.jdbcPassword, context.config.jdbcUrl) {
connect( user, password, context.config.jdbcUrl) {
sql "use ${db};"

def tableName = "test_f_2pc_schema_change"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ suite("test_partial_update_2pc_schema_change", "p0") {

String db = context.config.getDbNameByFile(context.file)
sql "select 1;" // to create database

def user = context.config.jdbcUser
def password = context.config.jdbcPassword
for (def use_row_store : [false, true]) {
logger.info("current params: use_row_store: ${use_row_store}")

connect( context.config.jdbcUser, context.config.jdbcPassword, context.config.jdbcUrl) {
connect( user, password, context.config.jdbcUrl) {
sql "use ${db};"

def tableName = "test_partial_update_2pc_schema_change"
Expand Down

0 comments on commit 3be7eb4

Please sign in to comment.