[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-grid5k] 26/189: try to fix sharding issues
From: |
gnunet |
Subject: |
[taler-grid5k] 26/189: try to fix sharding issues |
Date: |
Thu, 28 Apr 2022 10:46:36 +0200 |
This is an automated email from the git hooks/post-receive script.
marco-boss pushed a commit to branch master
in repository grid5k.
commit 8255f22af047712d5b30e62df31cf0cc84e84af9
Author: Boss Marco <bossm8@bfh.ch>
AuthorDate: Wed Feb 23 15:49:25 2022 +0100
try to fix sharding issues
---
experiment/scripts/exchange.sh | 5 +++++
sql/exchange-0001.sql | 2 +-
sql/exchange-shard-0000.sql | 1 +
sql/exchange_plugin_postgres.diff | 14 ++++++++++++++
4 files changed, 21 insertions(+), 1 deletion(-)
diff --git a/experiment/scripts/exchange.sh b/experiment/scripts/exchange.sh
index 1bf5035..bbb1202 100755
--- a/experiment/scripts/exchange.sh
+++ b/experiment/scripts/exchange.sh
@@ -61,6 +61,11 @@ function setup_exchange() {
# Initialize all stuff needed
# logs, configs, exchanges
function init_exchanges() {
+
+ cd ~/taler/exchange
+ git apply ${G5K_HOME}/sql/exchange_plugin_postgres.diff
+ make clean uninstall && make -j 10 && make install && ldconfig
+
restart_rsyslog
setup_config
diff --git a/sql/exchange-0001.sql b/sql/exchange-0001.sql
index d13fc56..441df3a 100644
--- a/sql/exchange-0001.sql
+++ b/sql/exchange-0001.sql
@@ -1131,7 +1131,7 @@ INSERT INTO wire_targets
VALUES
(in_h_payto
,in_receiver_wire_account)
-ON CONFLICT (h_payto) DO NOTHING
+ON CONFLICT DO NOTHING
RETURNING wire_target_serial_id INTO wtsi;
IF NOT FOUND
diff --git a/sql/exchange-shard-0000.sql b/sql/exchange-shard-0000.sql
index dfbca38..5f16d62 100644
--- a/sql/exchange-shard-0000.sql
+++ b/sql/exchange-shard-0000.sql
@@ -89,6 +89,7 @@ BEGIN
'(melt_serial_id BIGINT UNIQUE '
',rc BYTEA PRIMARY KEY CHECK (LENGTH(rc)=64) '
',old_coin_pub BYTEA NOT NULL '
+ ',h_age_commitment BYTEA CHECK(LENGTH(h_age_commitment)=32) '
',old_coin_sig BYTEA NOT NULL CHECK(LENGTH(old_coin_sig)=64) '
',amount_with_fee_val INT8 NOT NULL '
',amount_with_fee_frac INT4 NOT NULL '
diff --git a/sql/exchange_plugin_postgres.diff
b/sql/exchange_plugin_postgres.diff
new file mode 100644
index 0000000..fa8c978
--- /dev/null
+++ b/sql/exchange_plugin_postgres.diff
@@ -0,0 +1,14 @@
+diff --git a/src/exchangedb/plugin_exchangedb_postgres.c
b/src/exchangedb/plugin_exchangedb_postgres.c
+index b5bf71e5..324e2168 100644
+--- a/src/exchangedb/plugin_exchangedb_postgres.c
++++ b/src/exchangedb/plugin_exchangedb_postgres.c
+@@ -796,7 +796,7 @@ prepare_statements (struct PostgresClosure *pg)
+ " ,coin_val"
+ " ,coin_frac"
+ " FROM dd"
+- " ON CONFLICT (coin_pub) DO NOTHING"
++ " ON CONFLICT DO NOTHING"
+ " RETURNING "
+ " known_coin_id"
+ " ) "
+
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-grid5k] 113/189: some doc about explain.py, (continued)
- [taler-grid5k] 113/189: some doc about explain.py, gnunet, 2022/04/28
- [taler-grid5k] 87/189: cflags via variables, gnunet, 2022/04/28
- [taler-grid5k] 100/189: correct time calculation, gnunet, 2022/04/28
- [taler-grid5k] 119/189: add docker-compose to explain-visualizer, gnunet, 2022/04/28
- [taler-grid5k] 83/189: finished configuration for secondary exchanges, gnunet, 2022/04/28
- [taler-grid5k] 123/189: update url's to match node names, gnunet, 2022/04/28
- [taler-grid5k] 81/189: change denominations 1,4,8, gnunet, 2022/04/28
- [taler-grid5k] 04/189: if not exists, gnunet, 2022/04/28
- [taler-grid5k] 09/189: add missing user directory, gnunet, 2022/04/28
- [taler-grid5k] 55/189: add certificates for nginx, gnunet, 2022/04/28
- [taler-grid5k] 26/189: try to fix sharding issues,
gnunet <=
- [taler-grid5k] 51/189: fix exchange service, gnunet, 2022/04/28
- [taler-grid5k] 57/189: update, gnunet, 2022/04/28
- [taler-grid5k] 15/189: fix wallet startup, gnunet, 2022/04/28
- [taler-grid5k] 59/189: configure proxy caching, gnunet, 2022/04/28
- [taler-grid5k] 29/189: fix, gnunet, 2022/04/28
- [taler-grid5k] 25/189: io load reduced, synchronous_commit seems to be the load issue, gnunet, 2022/04/28
- [taler-grid5k] 19/189: update shard sql, gnunet, 2022/04/28
- [taler-grid5k] 08/189: add missing user, gnunet, 2022/04/28
- [taler-grid5k] 10/189: fix, gnunet, 2022/04/28
- [taler-grid5k] 78/189: fix, gnunet, 2022/04/28