Allow lower case error message to also trigger retry (#2693)
* Allow lower case error message to also trigger retry * similar data integrity exception on different table Co-authored-by: Hedman, Bruno <bruno.hedman@rmp.uhn.ca>
This commit is contained in:
parent
05ac88bc21
commit
dfde993f2d
|
@ -99,7 +99,8 @@ public class HapiTransactionService {
|
|||
* thrown by one of the client threads, so we auto-retry in order to avoid
|
||||
* annopying spurious failures for the client.
|
||||
*/
|
||||
if (e.getMessage().contains("HFJ_TAG_DEF")) {
|
||||
if (e.getMessage().contains("HFJ_TAG_DEF") || e.getMessage().contains("hfj_tag_def") ||
|
||||
e.getMessage().contains("HFJ_RES_TAG") || e.getMessage().contains("hfj_res_tag")) {
|
||||
maxRetries = 3;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue