Skip to content

Commit 51dc4da

Browse files
committed
rebuild extensions on provision
1 parent 381c644 commit 51dc4da

File tree

4 files changed

+33
-8
lines changed

4 files changed

+33
-8
lines changed

contrib/mmts/testeaux/lib/RemoteNode.pm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ sub new
2727

2828
$self->execute("sudo iptables -F");
2929
$self->execute("sudo iptables -A INPUT -p tcp --dport ssh -j ACCEPT");
30+
$self->execute("sudo iptables -A OUTPUT -p tcp --sport ssh -m state --state ESTABLISHED,RELATED -j ACCEPT");
3031

3132
return $self;
3233
}
@@ -152,8 +153,8 @@ sub net_deny_out
152153
sub net_allow
153154
{
154155
my ($self) = @_;
155-
$self->execute("sudo iptables -D INPUT -j DROP");
156-
$self->execute("sudo iptables -D OUTPUT -j DROP");
156+
$self->execute("sudo iptables -D INPUT -j DROP || true");
157+
$self->execute("sudo iptables -D OUTPUT -j DROP || true");
157158
}
158159

159160
1;

contrib/mmts/testeaux/provision.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,14 @@
99
pg_version_tag: master
1010
pg_destroy_and_init: true
1111

12+
tasks:
13+
- name: build raftable
14+
shell: "make clean && make -j {{makejobs}} install"
15+
args:
16+
chdir: "{{pg_src}}/contrib/raftable"
17+
18+
- name: build multimaster
19+
shell: "make clean && make -j {{makejobs}} install"
20+
args:
21+
chdir: "{{pg_src}}/contrib/mmts"
22+

contrib/mmts/testeaux/run_splits.pl

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@
2323
'postgres'
2424
);
2525

26-
my $pgbench1 = IPC::Run::start (
26+
my $out = '';
27+
my $err = '';
28+
my $in = '';
29+
30+
my @pgb_params = (
2731
'pgbench',
2832
-c => 4,
2933
-T => 30,
@@ -33,16 +37,20 @@
3337
'postgres'
3438
);
3539

40+
41+
42+
my $pgbench1 = IPC::Run::start @pgb_params; #, \$in, \$out, \$err;
43+
3644
sleep 5;
37-
$cluster->{nodes}->[0]->net_deny_in;
45+
$cluster->{nodes}->[2]->net_deny_out;
46+
$cluster->{nodes}->[2]->net_deny_in;
3847
sleep 10;
39-
$cluster->{nodes}->[0]->net_allow;
40-
48+
$cluster->{nodes}->[2]->net_allow;
4149

4250
IPC::Run::finish($pgbench1);
43-
# IPC::Run::run @pgbench_init
44-
4551

52+
print("---stdout--\n$out\n");
53+
print("---stderr--\n$err\n");
4654

4755

4856

contrib/mmts/testeaux/stress/banktransfer.pm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
package stress::banktransfer;
22

3+
sub init
4+
{
5+
6+
}
7+
38
sub start
49
{
510
my ($class, @args) = @_;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy