Skip to content

Commit f484f0b

Browse files
knizhnikkelvich
authored andcommitted
Use repeatable read isolation level
1 parent cb202c8 commit f484f0b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests2/docker-entrypoint.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ if [ "$1" = 'postgres' ]; then
7373
max_replication_slots = 10
7474
max_wal_senders = 10
7575
shared_preload_libraries = 'raftable,multimaster'
76-
log_checkpoints = on
77-
log_autovacuum_min_duration = 0
76+
default_transaction_isolation = 'repeatable read'
7877
7978
raftable.id = $NODE_ID
8079
raftable.peers = '$RAFT_PEERS'

tests2/lib/event_history.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from __future__ import print_function
12
import time
23
import datetime
34
import uuid
@@ -96,7 +97,7 @@ def aggregate(self):
9697
if named_agg['running_latency'] < latency:
9798
named_agg['running_latency'] = latency
9899

99-
self.last_aggregation = datetime.datetime.now()
100+
#self.last_aggregation = last_aggregation
100101
#print("aggregeted!")
101102
return agg
102103

0 commit comments

Comments
 (0)