Tarantool development patches archive
 help / color / mirror / Atom feed
From: Oleg Koshovetc <okoshovetc@tarantool.org>
To: Alexander Tikhonov <avtikhon@tarantool.org>,
	Alexander Turenko <alexander.turenko@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org
Subject: [Tarantool-patches] [PATCH] durability: direct tpcc_load usage, removed sed
Date: Wed, 25 Nov 2020 17:59:57 +0300	[thread overview]
Message-ID: <d72be147-9a5c-dac9-85c6-f56a459d2bad@tarantool.org> (raw)

https://github.com/tarantool/bench-run/compare/tpcc_durability

load.sh script that was used before has been wirtten in such a manner
that it was hard to detect any errors during it's execution (not to
mention the fact that tpcc_load does not exit on any error).
Unfortunately this patch depends on a newer version of tarantool/tpcc
that exits on repetable errors, uses correct schemas for the latest
tarantool version and uses correct API from the latest tarantool
versions.
---
  benchs/tpcc/run.sh | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/benchs/tpcc/run.sh b/benchs/tpcc/run.sh
index fca7939..c27e4dc 100755
--- a/benchs/tpcc/run.sh
+++ b/benchs/tpcc/run.sh
@@ -13,7 +13,6 @@ killall tarantool tpcc_load 2>/dev/null || true
  sync && echo "sync passed" || echo "sync failed with error" $?
  echo 3 > /proc/sys/vm/drop_caches

-sed 's#box.sql#box#g' -i /opt/tpcc/create_table.lua
  $numaopts tarantool /opt/tpcc/create_table.lua &
  sleep 5

@@ -23,7 +22,7 @@ sleep 5
  tpcc_opts="-h localhost -P 3301 -d tarantool -u root -p '' -w 15"

  cd /opt/tpcc
-. /opt/tpcc/load.sh tarantool 15
+/opt/tpcc/tpcc_load $tpcc_opts

  $numaopts /opt/tpcc/tpcc_start $tpcc_opts -r10 -l${TIME} -i${TIME} 
 >tpcc_output.txt 2>/dev/null

-- 
2.7.4

                 reply	other threads:[~2020-11-25 15:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d72be147-9a5c-dac9-85c6-f56a459d2bad@tarantool.org \
    --to=okoshovetc@tarantool.org \
    --cc=alexander.turenko@tarantool.org \
    --cc=avtikhon@tarantool.org \
    --cc=tarantool-patches@dev.tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH] durability: direct tpcc_load usage, removed sed' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox