Closed carlosjgp closed 4 years ago
I think the problem we have is that QUERY_ENABLED shouldn't imply a change to SEARCH_ENABLED. SEARCH_ENABLED should be a site-wide setting, whereas QUERY_ENABLED should be something each node can change. https://github.com/openzipkin/zipkin/tree/master/zipkin-server#environment-variables
I've looked and QUERY_ENABLED has no bearing on SEARCH_ENABLED (what controls the index template). These are controlled independently.
It might be the case that some race condition is going on in your environment. I will try what you've done locally anyway
Sorry I asked to open this issue.. when it was being discussed I was on my mobile and it was hard to remember what controlled what. QUERY_ENABLED has no bearing on SEARCH_ENABLED, and only SEARCH_ENABLED would cause the template to be created incorrectly. What may have happened is you had some race lost but it is impossible to guess.
When running with QUERY_ENABLED=true
, I verified the index template is still created. Note: our storage images are test-only.. they are not intended for production.
curl -s localhost:9200/zipkin:span-2019-02-18/_mapping|jq .
{
"zipkin:span-2019-02-18": {
"mappings": {
"_default_": {
"dynamic_templates": [
{
"strings": {
"match": "*",
"match_mapping_type": "string",
"mapping": {
"ignore_above": 256,
"norms": false,
"type": "keyword"
}
}
}
]
},
"span": {
"_source": {
"excludes": [
"_q"
]
},
"dynamic_templates": [
{
"strings": {
"match": "*",
"match_mapping_type": "string",
"mapping": {
"ignore_above": 256,
"norms": false,
"type": "keyword"
}
}
}
],
"properties": {
"_q": {
"type": "keyword"
},
"annotations": {
"type": "object",
"enabled": false
},
"duration": {
"type": "long"
},
"id": {
"type": "keyword",
"ignore_above": 256
},
"kind": {
"type": "keyword",
"ignore_above": 256
},
"localEndpoint": {
"dynamic": "false",
"properties": {
"serviceName": {
"type": "keyword"
}
}
},
"name": {
"type": "keyword"
},
"parentId": {
"type": "keyword",
"ignore_above": 256
},
"remoteEndpoint": {
"dynamic": "false",
"properties": {
"serviceName": {
"type": "keyword"
}
}
},
"shared": {
"type": "boolean"
},
"tags": {
"type": "object",
"enabled": false
},
"timestamp": {
"type": "long"
},
"timestamp_millis": {
"type": "date",
"format": "epoch_millis"
},
"traceId": {
"type": "keyword"
}
}
}
}
}
}
If you want to troubleshoot further, you can use a similar POST request if you get the error on a real image. For now, I'm closing this issue as we don't use issues for troubleshooting unless there will be code change.
Describe the Bug
Hi! I'm trying to find some documentation about this error on Zipkin UI
I use Kubernetes to deploy Zipkin: 2 collectors
openzipkin/zipkin:2.12.0
QUERY_ENABLED: false
1 UIopenzipkin/zipkin:2.12.0
QUERY_ENABLED: true
1 Depencenciesopenzipkin/zipkin-dependencies2.0.4
CronJob 1 ElasticSearchzipkin-elasticsearch6:2.12.0
It works for a while... and then starts showing this error
Steps to Reproduce
QUERY_ENABLED: false
against ElastiseachQUERY_ENABLED: true
Expected Behaviour
UI can query Elasticsearch index
Conversation on Gitter: