diff options
author | gjoranv <gjoranv@gmail.com> | 2023-07-04 21:03:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-04 21:03:58 +0200 |
commit | c889ebcda171a9bab20fdee225b8eeee4c1921ca (patch) | |
tree | 573d1d9ac6de249e923d7bae2d52d5bd45cfb41d | |
parent | 21e106a8171d1e2e42a3d4bfb9361a30c627d138 (diff) | |
parent | 10bfc8a53bedf4f5e3c01b1ffcf5c4739c2da385 (diff) |
Merge pull request #27625 from vespa-engine/add-stacktrace-for-id-collisions
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.java | 4 |
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); |