Skip to content

Commit a708c0d

Browse files
author
Eric Fu
committed
Merge remote-tracking branch 'origin/main' into eric/unify_metrics_level
2 parents 44b834f + 5f75f9b commit a708c0d

File tree

192 files changed

+4629
-3473
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+4629
-3473
lines changed

Cargo.lock

Lines changed: 62 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ members = [
1515
"src/frontend",
1616
"src/frontend/planner_test",
1717
"src/java_binding",
18+
"src/jni_core",
1819
"src/meta",
1920
"src/object_store",
2021
"src/prost",
@@ -113,6 +114,8 @@ risingwave_stream = { path = "./src/stream" }
113114
risingwave_test_runner = { path = "./src/test_runner" }
114115
risingwave_udf = { path = "./src/udf" }
115116
risingwave_variables = { path = "./src/utils/variables" }
117+
risingwave_java_binding = { path = "./src/java_binding" }
118+
risingwave_jni_core = { path = "src/jni_core" }
116119

117120
[profile.dev]
118121
lto = 'off'

Makefile.toml

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,53 @@ description = "Kill RisingWave dev cluster"
579579
script = '''
580580
#!/usr/bin/env bash
581581
582-
tmux list-windows -t risedev -F "#{pane_id}" | xargs -I {} tmux send-keys -t {} C-c C-d
582+
set -euo pipefail
583+
584+
wait_kafka_exit() {
585+
# Follow kafka-server-stop.sh
586+
while [[ -n "$(ps ax | grep ' kafka\.Kafka ' | grep java | grep -v grep | awk '{print $1}')" ]]; do
587+
echo "Waiting for kafka to exit"
588+
sleep 1
589+
done
590+
}
591+
592+
wait_zookeeper_exit() {
593+
# Follow zookeeper-server-stop.sh
594+
while [[ -n "$(ps ax | grep java | grep -i QuorumPeerMain | grep -v grep | awk '{print $1}')" ]]; do
595+
echo "Waiting for zookeeper to exit"
596+
sleep 1
597+
done
598+
}
599+
600+
kill_kafka() {
601+
${PREFIX_BIN}/kafka/bin/kafka-server-stop.sh
602+
wait_kafka_exit
603+
}
604+
605+
kill_zookeeper() {
606+
${PREFIX_BIN}/kafka/bin/zookeeper-server-stop.sh
607+
wait_zookeeper_exit
608+
}
609+
610+
# Kill other components
611+
tmux list-windows -t risedev -F "#{window_name} #{pane_id}" \
612+
| grep -v 'kafka' \
613+
| grep -v 'zookeeper' \
614+
| awk '{ print $2 }' \
615+
| xargs -I {} tmux send-keys -t {} C-c C-d
616+
617+
if [[ -n $(tmux list-windows -t risedev | grep kafka) ]];
618+
then
619+
echo "kill kafka"
620+
kill_kafka
621+
622+
echo "kill zookeeper"
623+
kill_zookeeper
624+
625+
# Kill their tmux sessions
626+
tmux list-windows -t risedev -F "#{pane_id}" | xargs -I {} tmux send-keys -t {} C-c C-d
627+
fi
628+
583629
tmux kill-session -t risedev
584630
test $? -eq 0 || { echo "Failed to stop all RiseDev components."; exit 1; }
585631
'''
@@ -1238,3 +1284,8 @@ cat << EOF > src/config/example.toml
12381284
EOF
12391285
cargo run -p risingwave_common --bin example-config >> src/config/example.toml
12401286
'''
1287+
1288+
[tasks.backwards-compat-test]
1289+
category = "RiseDev - Backwards Compatibility Test"
1290+
description = "Run backwards compatibility test"
1291+
script = "./backwards-compat-tests/scripts/run_local.sh"

backwards-compat-tests/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Backwards Compatibility Tests
2+
3+
The backwards compatibility tests run in the following manner:
4+
1. Prepare old-cluster artifacts
5+
2. Configure the old-cluster.
6+
3. Start the old-cluster.
7+
4. Run DDL / DML / DQL.
8+
5. Stop the old-cluster.
9+
6. Prepare new-cluster artifacts.
10+
7. Configure the new-cluster.
11+
8. Start the new-cluster.
12+
9. Verify results of step 4.
13+
14+
We currently cover the following:
15+
1. Basic mv
16+
2. Nexmark (on rw table not nexmark source)
17+
3. TPC-H
18+
4. Kafka Source

0 commit comments

Comments
 (0)