Skip to content

Commit 25729d9

Browse files
authored
config txn-total-size-limit in tests (pingcap#848)
the latest tidb version has enlarge this and reject to start up if txn-total-size-limit > 100 * (1<<20) relate code: 295: TxnTotalSizeLimit uint64 `toml:"txn-total-size-limit" json:"txn-total-size-limit"` 724: return fmt.Errorf("txn-total-size-limit should be less than %d with binlog enabled", 100<<20) 727: return fmt.Errorf("txn-total-size-limit should be less than %d", 10<<30)
1 parent 628c34a commit 25729d9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/run.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,16 @@ stop_services() {
3232
}
3333

3434
start_upstream_tidb() {
35+
cat - > "$OUT_DIR/tidb-config.toml" <<EOF
36+
[performance]
37+
txn-total-size-limit = 104857599
38+
EOF
39+
3540
port=${1-4000}
3641
echo "Starting TiDB at port: $port..."
3742
tidb-server \
3843
-P $port \
44+
-config "$OUT_DIR/tidb-config.toml" \
3945
--store tikv \
4046
--path 127.0.0.1:2379 \
4147
--enable-binlog=true \

0 commit comments

Comments
 (0)