[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-exchange] 01/02: use retry in benchmark
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-exchange] 01/02: use retry in benchmark |
Date: |
Fri, 10 Aug 2018 18:48:49 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
commit e17121fd1c8a08aeedafd0be365ba06e0820c691
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Aug 10 12:40:37 2018 +0200
use retry in benchmark
---
src/benchmark/taler-exchange-benchmark.c | 14 ++++++++------
src/exchange-lib/testing_api_cmd_withdraw.c | 4 ++++
2 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/src/benchmark/taler-exchange-benchmark.c
b/src/benchmark/taler-exchange-benchmark.c
index 7e6fd20..ac40ea7 100644
--- a/src/benchmark/taler-exchange-benchmark.c
+++ b/src/benchmark/taler-exchange-benchmark.c
@@ -372,12 +372,14 @@ run (void *cls,
GNUNET_asprintf (&order_enc,
"{\"nonce\": %u}",
i);
- unit[0] = TALER_TESTING_cmd_withdraw_amount
- (withdraw_label,
- is->exchange,
- "create-reserve",
- AMOUNT_5,
- MHD_HTTP_OK);
+ unit[0] =
+ TALER_TESTING_cmd_withdraw_with_retry
+ (TALER_TESTING_cmd_withdraw_amount
+ (withdraw_label,
+ is->exchange,
+ "create-reserve",
+ AMOUNT_5,
+ MHD_HTTP_OK));
unit[1] = TALER_TESTING_cmd_deposit
("deposit",
is->exchange,
diff --git a/src/exchange-lib/testing_api_cmd_withdraw.c
b/src/exchange-lib/testing_api_cmd_withdraw.c
index c707549..50cc45e 100644
--- a/src/exchange-lib/testing_api_cmd_withdraw.c
+++ b/src/exchange-lib/testing_api_cmd_withdraw.c
@@ -169,6 +169,10 @@ reserve_withdraw_cb (void *cls,
{
if (GNUNET_YES == ws->do_retry)
{
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Retrying withdraw failed with %u/%d\n",
+ http_status,
+ (int) ec);
if ( (TALER_EC_DB_COMMIT_FAILED_ON_RETRY == ec) ||
(TALER_EC_WITHDRAW_INSUFFICIENT_FUNDS == ec) ||
(TALER_EC_WITHDRAW_RESERVE_UNKNOWN == ec) ||
--
To stop receiving notification emails like this one, please contact
address@hidden