summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgjoranv <gv@yahooinc.com>2023-07-04 12:19:59 +0200
committergjoranv <gv@yahooinc.com>2023-07-04 12:19:59 +0200
commit10bfc8a53bedf4f5e3c01b1ffcf5c4739c2da385 (patch)
tree09cabbdb5427e19600693e860ef2d3a5e13bd1d2
parentecaf9bd3a532ac937895fb7bc861174a583f874b (diff)
Print stacktrace when trying to add a child producer with same id.
-rw-r--r--config-model/src/main/java/com/yahoo/config/model/producer/TreeConfigProducer.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/config-model/src/main/java/com/yahoo/config/model/producer/TreeConfigProducer.java b/config-model/src/main/java/com/yahoo/config/model/producer/TreeConfigProducer.java
index 30f9cd202ff..78c0ea0ddef 100644
--- a/config-model/src/main/java/com/yahoo/config/model/producer/TreeConfigProducer.java
+++ b/config-model/src/main/java/com/yahoo/config/model/producer/TreeConfigProducer.java
@@ -7,6 +7,7 @@ import com.yahoo.vespa.model.Service;
import com.yahoo.vespa.model.SimpleConfigProducer;
import com.yahoo.vespa.model.utils.FreezableMap;
import java.util.ArrayList;
+import java.util.Arrays;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.List;
@@ -74,7 +75,8 @@ public abstract class TreeConfigProducer<CHILD extends AnyConfigProducer>
errorMsgClassName() + " '" + getSubId() + "'. (This is commonly caused by service/node index " +
"collisions in the config.)." +
"\nExisting instance: " + childrenBySubId.get(child.getSubId()) +
- "\nAttempted to add: " + child);
+ "\nAttempted to add: " + child +
+ "\nStack trace: " + Arrays.toString(Thread.currentThread().getStackTrace()));
}
childrenBySubId.put(child.getSubId(), child);