Skip to content

Commit

Permalink
feat: add auto_clean_log function
Browse files Browse the repository at this point in the history
  • Loading branch information
aronchanisme committed Oct 21, 2023
1 parent 379ad46 commit 5050b7e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/unit_test_linux_ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1204,7 +1204,11 @@ jobs:
mo_ctl clean_backup
echo "Show backup path"
ls -lth ${{ env.BACKUP_PATH }}
ls -lth ${{ env.BACKUP_PATH }}/*/
for dir in `ls ${{ env.BACKUP_PATH }}`; do
echo "----------------------------------"
echo "Listing files in ${{ env.BACKUP_PATH }}/${dir}/"
ls -lth ${{ env.BACKUP_PATH }}/${dir}/
done
echo "----------------------------------"
echo "Test backup manually"
echo ""
Expand Down Expand Up @@ -1273,6 +1277,7 @@ jobs:
mo_ctl sql "select count(*) from test.tb1; select * from test.tb1"
- name: Test_3. Set confs
run: |
mo_ctl set_conf TOOL_LOG_LEVEL=D
mo_ctl set_conf CLEAN_LOGS_DAYS_BEFORE="0"
mo_ctl set_conf CLEAN_LOGS_TABLE_LIST="statement_info,rawlog,metric"
mo_ctl set_conf CLEAN_LOGS_CRON_SCHEDULE="* * * * *"
Expand Down

0 comments on commit 5050b7e

Please sign in to comment.