diff options
author | Arne H Juul <arnej@yahooinc.com> | 2021-12-08 19:06:10 +0000 |
---|---|---|
committer | Arne H Juul <arnej@yahooinc.com> | 2021-12-08 20:01:31 +0000 |
commit | bd84af53903cab455e3f806b5a93b6edacbef11e (patch) | |
tree | ffe4c58ba2b014439f5b3e2d5049e32d725cc39c /config-model | |
parent | d2d8a190d82833558c76acd410a1100f83b2398d (diff) |
debug print for some should-not-happen cases
Diffstat (limited to 'config-model')
-rw-r--r-- | config-model/src/main/java/com/yahoo/vespa/configmodel/producers/DocumentManager.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/configmodel/producers/DocumentManager.java b/config-model/src/main/java/com/yahoo/vespa/configmodel/producers/DocumentManager.java index 44975767861..c76577cf61a 100644 --- a/config-model/src/main/java/com/yahoo/vespa/configmodel/producers/DocumentManager.java +++ b/config-model/src/main/java/com/yahoo/vespa/configmodel/producers/DocumentManager.java @@ -56,7 +56,11 @@ public class DocumentManager { for (DataType dataType : todo) { if (built.contains(dataType)) continue; built.add(dataType); - if (dataType instanceof TemporaryStructuredDataType) continue; + if (dataType instanceof TemporaryStructuredDataType) { + // this should never happen? + System.err.println("still temporary [1]: "+dataType); + continue; + } if ((dataType.getId() < 0) || (dataType.getId()> DataType.lastPredefinedDataTypeId())) { Datatype.Builder dataTypeBuilder = new Datatype.Builder(); documentConfigBuilder.datatype(dataTypeBuilder); @@ -105,6 +109,7 @@ public class DocumentManager { keytype(mtype.getKeyType().getId()). valtype(mtype.getValueType().getId())); } else if (type instanceof DocumentType) { + System.err.println("still a DocumentType: "+type); DocumentType dt = (DocumentType) type; Datatype.Documenttype.Builder doc = new Datatype.Documenttype.Builder(); builder.documenttype(doc); @@ -127,7 +132,8 @@ public class DocumentManager { buildConfig(dt.getFieldSets(), doc); buildImportedFieldsConfig(dt.getImportedFieldNames(), doc); } else if (type instanceof TemporaryStructuredDataType) { - //Ignored + // this should never happen? + System.err.println("still temporary [2]: "+type); } else if (type instanceof StructDataType) { StructDataType structType = (StructDataType) type; Datatype.Structtype.Builder structBuilder = new Datatype.Structtype.Builder(); |