Skip to content

Commit

Permalink
text
Browse files Browse the repository at this point in the history
  • Loading branch information
xxhZs committed May 6, 2024
1 parent 92fd979 commit 221ef44
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 16 deletions.
30 changes: 15 additions & 15 deletions ci/scripts/run-e2e-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,26 +75,26 @@ mv target/debug/risingwave_e2e_extended_mode_test-"$profile" target/debug/rising

chmod +x ./target/debug/risingwave_e2e_extended_mode_test

echo "--- e2e, $mode, streaming"
RUST_LOG="info,risingwave_stream=info,risingwave_batch=info,risingwave_storage=info" \
cluster_start
# Please make sure the regression is expected before increasing the timeout.
sqllogictest -p 4566 -d dev './e2e_test/streaming/**/*.slt' --junit "streaming-${profile}"
# echo "--- e2e, $mode, streaming"
# RUST_LOG="info,risingwave_stream=info,risingwave_batch=info,risingwave_storage=info" \
# cluster_start
# # Please make sure the regression is expected before increasing the timeout.
# sqllogictest -p 4566 -d dev './e2e_test/streaming/**/*.slt' --junit "streaming-${profile}"

echo "--- Kill cluster"
cluster_stop
# echo "--- Kill cluster"
# cluster_stop

echo "--- e2e, $mode, batch"
RUST_LOG="info,risingwave_stream=info,risingwave_batch=info,risingwave_storage=info" \
cluster_start
sqllogictest -p 4566 -d dev './e2e_test/ddl/**/*.slt' --junit "batch-ddl-${profile}"
if [[ "$mode" != "single-node" ]]; then
sqllogictest -p 4566 -d dev './e2e_test/background_ddl/basic.slt' --junit "batch-ddl-${profile}"
fi
sqllogictest -p 4566 -d dev './e2e_test/visibility_mode/*.slt' --junit "batch-${profile}"
sqllogictest -p 4566 -d dev './e2e_test/ttl/ttl.slt'
sqllogictest -p 4566 -d dev './e2e_test/database/prepare.slt'
sqllogictest -p 4566 -d test './e2e_test/database/test.slt'
# sqllogictest -p 4566 -d dev './e2e_test/ddl/**/*.slt' --junit "batch-ddl-${profile}"
# if [[ "$mode" != "single-node" ]]; then
# sqllogictest -p 4566 -d dev './e2e_test/background_ddl/basic.slt' --junit "batch-ddl-${profile}"
# fi
# sqllogictest -p 4566 -d dev './e2e_test/visibility_mode/*.slt' --junit "batch-${profile}"
# sqllogictest -p 4566 -d dev './e2e_test/ttl/ttl.slt'
# sqllogictest -p 4566 -d dev './e2e_test/database/prepare.slt'
# sqllogictest -p 4566 -d test './e2e_test/database/test.slt'

echo "--- e2e, $mode, subscription"
python3 -m pip install --break-system-packages psycopg2-binary
Expand Down
4 changes: 4 additions & 0 deletions src/frontend/src/handler/declare_cursor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ async fn handle_declare_subscription_cursor(
let min_unix_millis =
Epoch::now().as_unix_millis() - subscription.retention_seconds * 1000;
let subscription_build_millis = subscription.created_at_epoch.unwrap().as_unix_millis();
println!(
"min_unix_millis{},subscription_build_millis{}",
min_unix_millis, subscription_build_millis
);
let min_unix_millis = std::cmp::max(min_unix_millis, subscription_build_millis);
Some(convert_unix_millis_to_logstore_u64(min_unix_millis))
}
Expand Down
5 changes: 4 additions & 1 deletion src/frontend/src/session/cursor_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,10 @@ impl SubscriptionCursor {
.catalog_writer()?
.list_change_log_epochs(table_id, seek_timestamp, 2)
.await?;

println!(
"expected_timestamp{:?},{:?},{:?}",
expected_timestamp, seek_timestamp, new_epochs
);
if let Some(expected_timestamp) = expected_timestamp
&& (new_epochs.is_empty() || &expected_timestamp != new_epochs.first().unwrap())
{
Expand Down

0 comments on commit 221ef44

Please sign in to comment.