Skip to content

Commit 55bc89f

Browse files
branch-3.1: [fix](p2) throw Exception if hdfs is not enable #52761 (#53741)
Cherry-picked from #52761 Co-authored-by: yagagagaga <zhangminke@selectdb.com>
1 parent bffee1a commit 55bc89f

7 files changed

+7
-7
lines changed

regression-test/suites/cold_heat_separation_p2/add_drop_partition_by_hdfs.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import java.time.LocalDate;
2020

2121
suite("add_drop_partition_by_hdfs") {
2222
if (!enableHdfs()) {
23-
logger.info("skip this case because hdfs is not enabled");
23+
throw new RuntimeException("Hdfs is not enabled, if you want to skip this case, please mute it in regression-conf.groovy");
2424
}
2525
def fetchBeHttp = { check_func, meta_url ->
2626
def i = meta_url.indexOf("/api")

regression-test/suites/cold_heat_separation_p2/create_table_use_dynamic_partition_by_hdfs.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import java.time.LocalDate;
2020

2121
suite("cold_heat_dynamic_partition_by_hdfs") {
2222
if (!enableHdfs()) {
23-
logger.info("skip this case because hdfs is not enabled");
23+
throw new RuntimeException("Hdfs is not enabled, if you want to skip this case, please mute it in regression-conf.groovy");
2424
}
2525
def fetchBeHttp = { check_func, meta_url ->
2626
def i = meta_url.indexOf("/api")

regression-test/suites/cold_heat_separation_p2/create_table_use_partition_policy_by_hdfs.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import org.codehaus.groovy.runtime.IOGroovyMethods
1919

2020
suite("create_table_use_partition_policy_by_hdfs") {
2121
if (!enableHdfs()) {
22-
logger.info("skip this case because hdfs is not enabled");
22+
throw new RuntimeException("Hdfs is not enabled, if you want to skip this case, please mute it in regression-conf.groovy");
2323
}
2424
def fetchBeHttp = { check_func, meta_url ->
2525
def i = meta_url.indexOf("/api")

regression-test/suites/cold_heat_separation_p2/create_table_use_policy_by_hdfs.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import org.codehaus.groovy.runtime.IOGroovyMethods
1919

2020
suite("create_table_use_policy_by_hdfs") {
2121
if (!enableHdfs()) {
22-
logger.info("skip this case because hdfs is not enabled");
22+
throw new RuntimeException("Hdfs is not enabled, if you want to skip this case, please mute it in regression-conf.groovy");
2323
}
2424
def fetchBeHttp = { check_func, meta_url ->
2525
def i = meta_url.indexOf("/api")

regression-test/suites/cold_heat_separation_p2/load_colddata_to_hdfs.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import org.codehaus.groovy.runtime.IOGroovyMethods
1919

2020
suite("load_colddata_to_hdfs") {
2121
if (!enableHdfs()) {
22-
logger.info("skip this case because hdfs is not enabled");
22+
throw new RuntimeException("Hdfs is not enabled, if you want to skip this case, please mute it in regression-conf.groovy");
2323
}
2424

2525
def fetchBeHttp = { check_func, meta_url ->

regression-test/suites/cold_heat_separation_p2/modify_replica_use_partition_by_hdfs.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import org.codehaus.groovy.runtime.IOGroovyMethods
1919

2020
suite("modify_replica_use_partition_by_hdfs") {
2121
if (!enableHdfs()) {
22-
logger.info("skip this case because hdfs is not enabled");
22+
throw new RuntimeException("Hdfs is not enabled, if you want to skip this case, please mute it in regression-conf.groovy");
2323
}
2424
def replicaNum = getFeConfig("force_olap_table_replication_num")
2525
setFeConfig("force_olap_table_replication_num", 0)

regression-test/suites/cold_heat_separation_p2/table_modify_resouce_and_policy_by_hdfs.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import org.codehaus.groovy.runtime.IOGroovyMethods
1919

2020
suite("table_modify_resouce_by_hdfs") {
2121
if (!enableHdfs()) {
22-
logger.info("skip this case because hdfs is not enabled");
22+
throw new RuntimeException("Hdfs is not enabled, if you want to skip this case, please mute it in regression-conf.groovy");
2323
}
2424
def fetchBeHttp = { check_func, meta_url ->
2525
def i = meta_url.indexOf("/api")

0 commit comments

Comments
 (0)