-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This test fails with the "overlapping range" error if the WriteSyncNoop call is removed. Release note: None
- Loading branch information
Showing
5 changed files
with
67 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
export COCKROACH_ENGINE_MAX_SYNC_DURATION=60s | ||
|
||
killall -9 cockroach || true | ||
make build | ||
rm -rf cockroach-data* || true | ||
for i in 0 1 2 3; do | ||
./cockroach start --max-offset 10ms --insecure --host 127.0.0.1 --port $((26257+i)) --http-port $((8080+i)) --background --store "cockroach-data${i}" --join 127.0.0.1:26257 | ||
if [ $i -eq 0 ]; then ./cockroach init --insecure; fi | ||
done | ||
echo " | ||
SET CLUSTER SETTING kv.range_merge.queue_interval = '1ns'; | ||
SET CLUSTER SETTING kv.range_merge.queue_enabled = false; | ||
CREATE TABLE IF NOT EXISTS data (id INT PRIMARY KEY); | ||
ALTER TABLE data SPLIT AT SELECT i FROM generate_series(1, 1000) AS g(i); | ||
SET CLUSTER SETTING kv.range_merge.queue_enabled = true; | ||
" | ./cockroach sql --insecure | ||
|
||
./cockroach quit --insecure || true | ||
sleep 1 | ||
|
||
|
||
retval=137 | ||
while [ $retval -eq 137 ]; | ||
do | ||
set +e | ||
./cockroach start --max-offset 10ms --insecure --logtostderr --host 127.0.0.1 --store cockroach-data0 | ||
retval=$? | ||
set -e | ||
echo "exit code: $retval" | ||
done |