Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[test](p0) force replica = 1 in p0 regression tests #45684

Merged
merged 2 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions regression-test/pipeline/p0/conf/fe.conf
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,5 @@ enable_advance_next_id = true
# enable deadlock detection
enable_deadlock_detection = true
max_lock_hold_threshold_seconds = 10

force_olap_table_replication_allocation=tag.location.default:1
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
// specific language governing permissions and limitations
// under the License.
suite("test_dynamic_partition") {
def config_row = sql """ ADMIN SHOW FRONTEND CONFIG LIKE 'force_olap_table_replication_allocation'; """
String old_conf_value = config_row[0][1]
sql """ ADMIN SET FRONTEND CONFIG ("force_olap_table_replication_allocation" = ""); """

// todo: test dynamic partition
sql "drop table if exists dy_par"
sql """
Expand Down Expand Up @@ -156,4 +160,7 @@ suite("test_dynamic_partition") {
exception "errCode = 2,"
}
sql "drop table if exists dy_par_bad"

// restore force_olap_table_replication_allocation to old_value
sql """ ADMIN SET FRONTEND CONFIG ("force_olap_table_replication_allocation" = "${old_conf_value}"); """
}
Loading