We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5ee424 commit a3ba69bCopy full SHA for a3ba69b
src/swirl/runner.rs
@@ -190,9 +190,18 @@ impl Runner {
190
break;
191
}
192
warn!("Rolling back a transaction due to a panic in a background task");
193
- let _ = transaction_manager
+ match transaction_manager
194
.rollback_transaction(conn)
195
- .map_err(|e| error!("Error while rolling back transaction: {e}"));
+ {
196
+ Ok(_) => (),
197
+ Err(e) => {
198
+ error!("Leaking a thread and database connection because of an error while rolling back transaction: {e}");
199
+ loop {
200
+ std::thread::sleep(Duration::from_secs(24 * 60 * 60));
201
+ error!("How am I still alive?");
202
+ }
203
204
205
206
207
match result {
0 commit comments