Skip to content

Commit

Permalink
increase wait time after recovery
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikeW committed Dec 27, 2023
1 parent a4f765d commit 7ac1360
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions ci/scripts/e2e-source-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,18 @@ mysql --protocol=tcp -u root mytest -e "INSERT INTO products

# insert new rows
mysql --host=mysql --port=3306 -u root -p123456 < ./e2e_test/source/cdc/mysql_cdc_insert.sql
echo "> inserted new rows into mysql"

psql < ./e2e_test/source/cdc/postgres_cdc_insert.sql
echo "inserted new rows into mysql and postgres"
echo "> inserted new rows into postgres"

# start cluster w/o clean-data
RUST_LOG="info,risingwave_stream=info,risingwave_batch=info,risingwave_storage=info" \
RUST_LOG="info,events::stream::message::chunk=trace,risingwave_stream=info,risingwave_batch=info,risingwave_storage=info" \

cargo make dev ci-1cn-1fe-with-recovery
echo "wait for cluster recovery finish"
sleep 20
echo "check mviews after cluster recovery"
echo "> wait for cluster recovery finish"
sleep 25
echo "> check mviews after cluster recovery"
# check results
sqllogictest -p 4566 -d dev './e2e_test/source/cdc/cdc.check_new_rows.slt'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ plugin.name=${debezium.plugin.name:-pgoutput}
# allow to auto create publication for given tables
publication.autocreate.mode=${debezium.publication.autocreate.mode:-filtered}
publication.name=${publication.name:-rw_publication}
# default heartbeat interval 60 seconds
heartbeat.interval.ms=${debezium.heartbeat.interval.ms:-60000}
# default heartbeat interval 5 mins
heartbeat.interval.ms=${debezium.heartbeat.interval.ms:-300000}
# In sharing cdc source mode, we will subscribe to multiple tables in the given database,
# so here we set ${table.name} to a default value `RW_CDC_Sharing` just for display.
name=${hostname}:${port}:${database.name}.${schema.name}.${table.name:-RW_CDC_Sharing}
Expand Down

0 comments on commit 7ac1360

Please sign in to comment.