#!/bin/bash
mysql -uroot -p"xxxx" -hxxx -P3306 --local-infile -Dtpch -e "load data local infile '/root/stonedb/tpch/tpcH/data/customer.tbl' into table customer fields terminated by '|';"
mysql -uroot -p"xxxx" -hxxxxxxx -P3306 --local-infile -Dtpch -e "load data local infile '/root/stonedb/tpch/tpcH/data/lineitem.tbl' into table lineitem fields terminated by '|';"
mysql -uroot -p"xxxx" -hxxxxxxx -P3306 --local-infile -Dtpch -e "load data local infile '/root/stonedb/tpch/tpcH/data/nation.tbl' into table nation fields terminated by '|';"
mysql -uroot -p"xxxx" -hxxxxxx -P3306 --local-infile -Dtpch -e "load data local infile '/root/stonedb/tpch/tpcH/data/orders.tbl' into table orders fields terminated by '|';"
mysql -uroot -p"xxxx" -hxxxxxx -P3306 --local-infile -Dtpch -e "load data local infile '/root/stonedb/tpch/tpcH/data/partsupp.tbl' into table partsupp fields terminated by '|';"
mysql -uroot -p"xxxx" -hxxxxxx -P3306 --local-infile -Dtpch -e "load data local infile '/root/stonedb/tpch/tpcH/data/part.tbl' into table part fields terminated by '|';"
mysql -uroot -p"xxxx" -hxxxxxx -P3306 --local-infile -Dtpch -e "load data local infile '/root/stonedb/tpch/tpcH/data/region.tbl' into table region fields terminated by '|';"
mysql -uroot -p"xxxx" -hxxxxxx -P3306 --local-infile -Dtpch -e "load data local infile '/root/stonedb/tpch/tpcH/data/supplier.tbl' into table supplier fields terminated by '|';"
Environment
Ubuntu : 20.04.1
Valgrind : 3.19.0
StoneDB:
build information as follow:
Repository address: https://github.com/stoneatom/stonedb.git:main
Branch name: main
Last commit ID: 4ff00ea
Last commit time: Date: Tue Jun 21 19:06:22 2022 +0800
Build time: Date: Tue Jun 21 12:55:08 UTC 2022
Describe the problem
Valgrind test
Using TPCH to generate 2GB data and import it into StoneDB:
Invalid write、Invalid read
Valgrind test log:
Expected behavior
No Leakage
How To Reproduce
Start valgrind
Load TPCH 2G Data TO StoneDB
Environment
Additional context