File tree Expand file tree Collapse file tree 4 files changed +15
-9
lines changed Expand file tree Collapse file tree 4 files changed +15
-9
lines changed Original file line number Diff line number Diff line change
1
+ -- create extension multimaster;
2
+ ALTER DATABASE " postgres" SET lc_messages TO ' C' ;
3
+ ALTER DATABASE " postgres" SET lc_monetary TO ' C' ;
4
+ ALTER DATABASE " postgres" SET lc_numeric TO ' C' ;
5
+ ALTER DATABASE " postgres" SET lc_time TO ' C' ;
6
+ ALTER DATABASE " postgres" SET timezone_abbreviations TO ' Default' ;
Original file line number Diff line number Diff line change 1
1
n_nodes=3
2
- export PATH=~ /code/postgres_cluster/install /bin/:$PATH
2
+ export PATH=~ /code/postgres_cluster/tmp_install /bin/:$PATH
3
3
ulimit -c unlimited
4
4
pkill -9 postgres
5
5
pkill -9 arbiter
19
19
port=$(( 5431 + i))
20
20
raft_port=$(( 6665 + i))
21
21
arbiter_port=$(( 7000 + i))
22
- conn_str=" $conn_str ${sep} dbname=regression user=stas host=127.0.0.1 port=$port arbiterport =$arbiter_port sslmode=disable"
22
+ conn_str=" $conn_str ${sep} dbname=regression user=stas host=127.0.0.1 port=$port arbiter_port =$arbiter_port sslmode=disable"
23
23
raft_conn_str=" $raft_conn_str ${sep}${i} :localhost:$raft_port "
24
24
sep=" ,"
25
25
initdb node$i
46
46
max_worker_processes = 15
47
47
max_replication_slots = 10
48
48
max_wal_senders = 10
49
- shared_preload_libraries = 'raftable, multimaster'
49
+ shared_preload_libraries = 'multimaster'
50
50
default_transaction_isolation = 'repeatable read'
51
51
52
52
multimaster.workers = 1
70
70
done
71
71
72
72
sleep 10
73
- psql regression < ../../../ regress.sql
73
+ psql regression < regress.sql
74
74
75
75
echo Done
File renamed without changes.
Original file line number Diff line number Diff line change @@ -7,15 +7,15 @@ class RecoveryTest(unittest.TestCase):
7
7
@classmethod
8
8
def setUpClass (self ):
9
9
print ('setUp' )
10
- # subprocess.check_call(['docker-compose','up',
11
- # '--force-recreate',
12
- # '--build',
13
- # '-d'])
10
+ subprocess .check_call (['docker-compose' ,'up' ,
11
+ '--force-recreate' ,
12
+ '--build' ,
13
+ '-d' ])
14
14
15
15
@classmethod
16
16
def tearDownClass (self ):
17
17
print ('tearDown' )
18
- # subprocess.check_call(['docker-compose','down'])
18
+ subprocess .check_call (['docker-compose' ,'down' ])
19
19
20
20
def test_regression (self ):
21
21
# XXX: make smth clever here
You can’t perform that action at this time.
0 commit comments