Commit 6f262d7
GH-2467: JdbcLockReg: retry on TransDataAccessExc
* GH-2467: JdbcLockRegistry should retry on DeadlockLoserDataAccessException
Fixes #2467
MySQL 5.7.15 introduced setting `innodb_deadlock_detect` (enabled by
default). As a result MySQL JDBC driver throws
`DeadlockLoserDataAccessException` when deadlock is detected.
`JdbcLockRegistry` doesn't handle it causing lock to be lost.
* Retry `doLock()` on data access deadlock instead of loosing the lock
* Use TransientDataAccessException instead of derived exceptions
# Conflicts:
# spring-integration-jdbc/src/main/java/org/springframework/integration/jdbc/lock/JdbcLockRegistry.java1 parent 81cfa80 commit 6f262d7
File tree
1 file changed
+5
-24
lines changed- spring-integration-jdbc/src/main/java/org/springframework/integration/jdbc/lock
1 file changed
+5
-24
lines changedLines changed: 5 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
31 | | - | |
| 30 | + | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
36 | | - | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
| |||
47 | 45 | | |
48 | 46 | | |
49 | 47 | | |
| 48 | + | |
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
| |||
125 | 124 | | |
126 | 125 | | |
127 | 126 | | |
128 | | - | |
| 127 | + | |
129 | 128 | | |
130 | 129 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | 130 | | |
138 | 131 | | |
139 | 132 | | |
| |||
165 | 158 | | |
166 | 159 | | |
167 | 160 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
| 161 | + | |
172 | 162 | | |
173 | 163 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | 164 | | |
178 | 165 | | |
179 | 166 | | |
| |||
215 | 202 | | |
216 | 203 | | |
217 | 204 | | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
| 205 | + | |
222 | 206 | | |
223 | 207 | | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | 208 | | |
228 | 209 | | |
229 | 210 | | |
| |||
0 commit comments