Commit 3545ede
committed
[python] Fix flaky test_concurrent_updates_overlapping_rows_last_writer_wins
The test derived the winner from completion_order[-1] (the order threads
returned in), which is not the commit order, so under CI load it diverged
from the persisted data and failed intermittently. Tag each thread's
commits with a distinct commit.user-prefix and read the true winner from
the latest snapshot's commit_user, then assert the persisted rows equal
that thread's whole update and the untouched rows keep their seed values.1 parent 7234e4c commit 3545ede
1 file changed
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1093 | 1093 | | |
1094 | 1094 | | |
1095 | 1095 | | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
1096 | 1099 | | |
1097 | 1100 | | |
1098 | | - | |
| 1101 | + | |
1099 | 1102 | | |
1100 | 1103 | | |
1101 | 1104 | | |
| |||
1142 | 1145 | | |
1143 | 1146 | | |
1144 | 1147 | | |
1145 | | - | |
1146 | | - | |
1147 | | - | |
1148 | | - | |
| 1148 | + | |
1149 | 1149 | | |
1150 | | - | |
1151 | | - | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
1152 | 1153 | | |
1153 | 1154 | | |
1154 | 1155 | | |
| |||
0 commit comments