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:
rbhman 2021-06-01 10:50:06 -04:00 committed by GitHub
parent 05ac88bc21
commit dfde993f2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}