Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.

suite('test_decommission_with_replica_num_fail') {
suite('test_decommission_with_replica_num_fail', 'nonConcurrent') {
def tbl = 'test_decommission_with_replica_num_fail'
def backends = sql_return_maparray('show backends')
def replicaNum = 0
Expand Down Expand Up @@ -43,13 +43,22 @@ suite('test_decommission_with_replica_num_fail') {
"replication_num" = "${replicaNum}"
);
"""

// fix set force_olap_table_replication_num
sql "ALTER TABLE ${tbl} SET ('default.replication_num' = '${replicaNum}')"
sql "ALTER TABLE ${tbl} MODIFY PARTITION (*) SET ('replication_num' = '${replicaNum}')"

try {
test {
sql "ALTER SYSTEM DECOMMISSION BACKEND '${targetBackend.Host}:${targetBackend.HeartbeatPort}'"
exception "otherwise need to decrease the partition's replication num"
}
} finally {
sql "CANCEL DECOMMISSION BACKEND '${targetBackend.Host}:${targetBackend.HeartbeatPort}'"
backends = sql_return_maparray('show backends')
for (def be : backends) {
logger.info("backend=${be}")
}
}
sql "DROP TABLE IF EXISTS ${tbl} FORCE"
}
2 changes: 1 addition & 1 deletion regression-test/suites/node_p0/test_backend.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.

suite("test_backend") {
suite("test_backend", "nonConcurrent") {
def address = "127.0.0.1"
def notExistPort = 12346

Expand Down