summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2018-09-11 17:01:08 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2018-09-11 17:01:08 +0200
commitbd86c2fa44fb85317b7141a70491bc552cc4447b (patch)
tree93ba1a830e888ce1d2c2db17fb27ad9da3b2f92b /document
parente081b9a0cf120903ee5ddaf852245c05ece3b0c2 (diff)
Never give up.
Diffstat (limited to 'document')
-rw-r--r--document/src/main/java/com/yahoo/document/DocumentTypeManagerConfigurer.java5
1 files changed, 0 insertions, 5 deletions
diff --git a/document/src/main/java/com/yahoo/document/DocumentTypeManagerConfigurer.java b/document/src/main/java/com/yahoo/document/DocumentTypeManagerConfigurer.java
index 4ae5e6a713c..7678360ea30 100644
--- a/document/src/main/java/com/yahoo/document/DocumentTypeManagerConfigurer.java
+++ b/document/src/main/java/com/yahoo/document/DocumentTypeManagerConfigurer.java
@@ -70,9 +70,7 @@ public class DocumentTypeManagerConfigurer implements ConfigSubscriber.SingleSub
log.log(LogLevel.DEBUG, "Configuring document manager with " + config.datatype().size() + " data types.");
ArrayList<DocumentmanagerConfig.Datatype> failed = new ArrayList<>();
failed.addAll(config.datatype());
- int failCounter = 30;
while (!failed.isEmpty()) {
- --failCounter;
ArrayList<DocumentmanagerConfig.Datatype> tmp = failed;
failed = new ArrayList<>();
for (int i = 0; i < tmp.size(); i++) {
@@ -82,9 +80,6 @@ public class DocumentTypeManagerConfigurer implements ConfigSubscriber.SingleSub
registerTypeIdMapping(config, manager, thisDataType, id);
} catch (IllegalArgumentException e) {
failed.add(thisDataType);
- if (failCounter < 0) {
- throw e;
- }
}
}
}