OPEN connection=1 isolation=2
OPEN connection=2 isolation=2
SQL connection=2 thread=main text=CREATE TABLE stream_head(version INT) binds=[]
ROWS connection=2 affected=0
SQL connection=2 thread=main text=INSERT INTO stream_head VALUES(0) binds=[]
ROWS connection=2 affected=1
SQL connection=2 thread=main text=CREATE TABLE events(version INT PRIMARY KEY,event_id VARCHAR UNIQUE,kind VARCHAR,format INT,days INT) binds=[]
ROWS connection=2 affected=0
COMMIT connection=2 count=1
CLOSE connection=2 openStatements=0
OPEN connection=3 isolation=2
OPEN connection=4 isolation=2
SQL connection=4 thread=writer-a text=SELECT version FROM stream_head binds=[]
SQL connection=3 thread=writer-b text=SELECT version FROM stream_head binds=[]
SQL connection=4 thread=writer-a text=UPDATE stream_head SET version=version+1 WHERE version=? binds=[0]
SQL connection=3 thread=writer-b text=UPDATE stream_head SET version=version+1 WHERE version=? binds=[0]
ROWS connection=3 affected=1
SQL connection=3 thread=writer-b text=INSERT INTO events VALUES(?,?,?,?,?) binds=[1, writer-b, CREATED, 2, 2]
ROWS connection=3 affected=1
COMMIT connection=3 count=1
ROWS connection=4 affected=0
CLOSE connection=3 openStatements=0
ROLLBACK connection=4 count=1
CLOSE connection=4 openStatements=0
PASS concurrent independent connections one append one conflict
OPEN connection=5 isolation=2
SQL connection=5 thread=main text=SELECT COUNT(*) FROM events binds=[]
PASS race fresh connection exactly one event
CLOSE connection=5 openStatements=0
CLOSE connection=1 openStatements=0
RESULT enterprise13 race checks=2
