# يجب أن يفشل 'discourse remap' بصوت عالٍ وبشكل حاسم عند حدوث خطأ

**URL:** <https://meta.discourse.org/t/discourse-remap-should-fail-noisily-and-mightily-when-an-error-occurs/85990>\
**Category:** Bug\
**Created:** [23 أبريل 2018، 3:13م UTC](https://meta.discourse.org/t/discourse-remap-should-fail-noisily-and-mightily-when-an-error-occurs/85990 "2018-04-23T15:13:34Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)\
**Post date:** [23 أبريل 2018، 3:13م UTC](https://meta.discourse.org/t/discourse-remap-should-fail-noisily-and-mightily-when-an-error-occurs/85990/1 "2018-04-23T15:13:34Z")

</div>

had this happen in the middle of a remap:

```plaintext
…
Remapping posts raw
1454 rows affected!
Remapping posts cooked
Error: ERROR: deadlock detected
DETAIL: Process 10050 waits for ShareLock on transaction 552065959; blocked by process 9965.
Process 9965 waits for ShareLock on transaction 552065918; blocked by process 10050.
HINT: See server log for query details.
CONTEXT: while rechecking updated tuple (59101,9) in relation "posts"
Remapping posts edit_reason
0 rows affected!
Remapping posts raw_email
4340 rows affected!
Remapping posts action_code
0 rows affected!
Remapping posts image_url
122356 rows affected!
…continues…

```

Good thing I was watching it or I wouldn’t have known!

Expected behaviour: `discourse remap` should retry and abort the entire process if it cannot succeed

---

_[View the full topic](https://meta.discourse.org/t/discourse-remap-should-fail-noisily-and-mightily-when-an-error-occurs/85990)._
