Skip to content

Instantly share code, notes, and snippets.

@plaflamme
Last active August 29, 2015 14:22
Show Gist options
  • Save plaflamme/2095df195bd73d1fa689 to your computer and use it in GitHub Desktop.
Save plaflamme/2095df195bd73d1fa689 to your computer and use it in GitHub Desktop.
write/write conflict test issue
## write/write conflict / SNAPSHOT Isolation / canPush = false / expectAttempts = 1
# After sending the non-transactional Put request, this test waits 150ms before sending the EndTransaction request
## Columns are:
# Request: [request nonce] ->reqType <(tx header)>
# Response:[request nonce] latency_ms <-reqType <(tx header)> ok|(error)
[63l9GN0K] ->Put (tx=MqGNONnjYI6BQ8amT5G7 isolation=SNAPSHOT pri= state= epoch= ts= orig= max=)
[63l9GN0K] 4ms <-Put (tx=MqGNONnjYI6BQ8amT5G7 isolation=SNAPSHOT pri=2 state=PENDING epoch=0 ts=1433553027.958019300,0 orig=1433553027.958019300,0 max=1433553028.208019500,0) ok
[ANGRPyBL] ->Put
[Rz8XuBEi] ->EndTransaction (tx=MqGNONnjYI6BQ8amT5G7 isolation=SNAPSHOT pri=2 state=PENDING epoch=0 ts=1433553027.958019300,0 orig=1433553027.958019300,0 max=1433553028.208019500,0)
[Rz8XuBEi] 51ms <-EndTransaction (tx=MqGNONnjYI6BQ8amT5G7 isolation=SNAPSHOT pri=2 state=COMMITTED epoch=0 ts=1433553027.958019300,0 orig=1433553027.958019300,0 max=1433553028.208019500,0) ok
[ANGRPyBL] 380ms <-Put ok
[U153ZYIW] ->Get
[U153ZYIW] 4ms <-Get ok
## write/write conflict / SNAPSHOT Isolation / canPush = false / expectAttempts = 1
# This version waits for the non-transactional Put to respond once before sending the EndTransaction request
## Columns are:
# Request: [request nonce] ->reqType <(tx header)>
# Response:[request nonce] latency_ms <-reqType <(tx header)> ok|(error)
[30JYXlL2] ->Put (tx=z2u1FYel2V1hJVepEajo isolation=SNAPSHOT pri= state= epoch= ts= orig= max=)
[30JYXlL2] 8ms <-Put (tx=z2u1FYel2V1hJVepEajo isolation=SNAPSHOT pri=2 state=PENDING epoch=0 ts=1433552502.846321000,0 orig=1433552502.846321000,0 max=1433552503.096321300,0) ok
[Rat21CVX] ->Put
[Rat21CVX] 15012ms <-Put ok
[aTXyNgJx] ->EndTransaction (tx=z2u1FYel2V1hJVepEajo isolation=SNAPSHOT pri=2 state=PENDING epoch=0 ts=1433552502.846321000,0 orig=1433552502.846321000,0 max=1433552503.096321300,0)
[aTXyNgJx] 6ms <-EndTransaction (tx=z2u1FYel2V1hJVepEajo isolation=SNAPSHOT pri=2 state=ABORTED epoch=0 ts=1433552502.846321000,0 orig=1433552502.846321000,0 max=1433552503.096321300,0) (error=TransactionAborted retry=false restart=BACKOFF)
[xuaLd8kE] ->Put (tx=z2u1FYel2V1hJVepEajo isolation=SNAPSHOT pri=2 state= epoch= ts= orig= max=)
[xuaLd8kE] 5ms <-Put (tx=z2u1FYel2V1hJVepEajo isolation=SNAPSHOT pri=2 state=PENDING epoch=0 ts=1433552517.924577500,0 orig=1433552517.924577500,0 max=1433552518.174577500,0) ok
[xoEEqXAj] ->EndTransaction (tx=z2u1FYel2V1hJVepEajo isolation=SNAPSHOT pri=2 state=PENDING epoch=0 ts=1433552517.924577500,0 orig=1433552517.924577500,0 max=1433552518.174577500,0)
[xoEEqXAj] 9ms <-EndTransaction (tx=z2u1FYel2V1hJVepEajo isolation=SNAPSHOT pri=2 state=COMMITTED epoch=0 ts=1433552517.924577500,0 orig=1433552517.924577500,0 max=1433552518.174577500,0) ok
[KdIdIFxu] ->Get
[KdIdIFxu] 3ms <-Get ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment