Skip to content

Commit

Permalink
update shell again
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangstar333 committed May 22, 2024
1 parent ac26825 commit abaa73a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion regression-test/pipeline/performance/clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ source "${teamcity_build_checkoutDir}"/regression-test/pipeline/common/doris-uti

DORIS_HOME="${teamcity_build_checkoutDir}/output"
export DORIS_HOME
stop_doris
# stop_doris
5 changes: 3 additions & 2 deletions regression-test/pipeline/performance/run-load.sh
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,7 @@ ${clt} -e "set global enable_profile=true;"
insert_into_select_time=0
insert_into_select_rows=10000000
start=$(date +%s%3N)
${clt} -e "set parallel_pipeline_task_num = 1;"
if ${clt} -e"insert into ${DB}.hits_insert_into_select select * from clickbench.hits limit ${insert_into_select_rows};"; then
end=$(date +%s%3N)
echo "first test scale=1; (${end} - ${start})/1000"
Expand All @@ -639,14 +640,14 @@ ${clt} -e "set global enable_profile=true;"
${clt} -e "truncate table ${DB}.hits_insert_into_select;"
sleep 3
start=$(date +%s%3N)
${clt} -e "set parallel_pipeline_task_num = 0;"
if ${clt} -e"insert into ${DB}.hits_insert_into_select select * from clickbench.hits limit ${insert_into_select_rows};"; then
end=$(date +%s%3N)
insert_into_select_time=$(echo "scale=1; (${end} - ${start})/1000" | bc)
else
echo "ERROR: failed to insert into ${DB}.hits_insert_into_select select * from clickbench.hits limit ${insert_into_select_rows};"
return 1
fi
${clt} -e "show variables;"
sleep 5
if [[ $(${clt} -D"${DB}" -e"select count(*) from hits_insert_into_select" | sed -n '2p') != "${insert_into_select_rows}" ]]; then echo "check load fail..." && return 1; fi

Expand Down Expand Up @@ -703,7 +704,7 @@ exit_flag="$?"

echo "#### 5. check if need backup doris logs"
if [[ ${exit_flag} != "0" ]]; then
stop_doris
# stop_doris
print_doris_fe_log
print_doris_be_log
if file_name=$(archive_doris_logs "${pr_num_from_trigger}_${commit_id_from_trigger}_$(date +%Y%m%d%H%M%S)_doris_logs.tar.gz"); then
Expand Down

0 comments on commit abaa73a

Please sign in to comment.