Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle tag request error #80

Open
WilliGautier opened this issue Mar 16, 2021 · 0 comments
Open

Handle tag request error #80

WilliGautier opened this issue Mar 16, 2021 · 0 comments
Labels
type:bug Something isn't working

Comments

@WilliGautier
Copy link

DEBUG [2021-03-16 10:52:49,824] io.arlas.tagger.kafka.TagKafkaConsumer: [Consumer clientId=fd6d5fdc-27fe-4831-a9c6-fc13a213b972, groupId=execute_tags_consumer_group] Kafka consumer has been closed
Exception in thread "Thread-18" ElasticsearchStatusException[Elasticsearch exception [type=search_phase_execution_exception, reason=all shards failed]]
	at org.elasticsearch.rest.BytesRestResponse.errorFromXContent(BytesRestResponse.java:187)
	at org.elasticsearch.client.RestHighLevelClient.parseEntity(RestHighLevelClient.java:1892)
	at org.elasticsearch.client.RestHighLevelClient.parseResponseException(RestHighLevelClient.java:1869)
	at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1626)
	at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1583)
	at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1553)
	at org.elasticsearch.client.RestHighLevelClient.updateByQuery(RestHighLevelClient.java:599)
	at io.arlas.tagger.core.FilteredUpdater.doAction(FilteredUpdater.java:67)
	at io.arlas.tagger.service.UpdateServices.unTag(UpdateServices.java:48)
	at io.arlas.tagger.service.TagExecService.processRecords(TagExecService.java:83)
	at io.arlas.tagger.service.KafkaConsumerRunner.run(KafkaConsumerRunner.java:90)
	at java.lang.Thread.run(Thread.java:748)
	Suppressed: org.elasticsearch.client.ResponseException: method [POST], host [https://690a605d3db34f749f1c7bb57e08e45f.europe-west1.gcp.cloud.es.io:9243], URI [/ml_ais_flow/_update_by_query?slices=auto&requests_per_second=-1&ignore_unavailable=false&expand_wildcards=open&allow_no_indices=true&ignore_throttled=true&max_docs=2147483647&timeout=1m], status line [HTTP/1.1 400 Bad Request]
{"error":{"root_cause":[{"type":"query_shard_exception","reason":"Can only use regexp queries on keyword and text fields - not on [tagging.num1] which is of type [long]","index_uuid":"JdeEIwULT1q6qji2PZghNQ","index":"ml_ais_flow"}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"ml_ais_flow","node":"Y5lyy8YHRRucKAE2vYcEYw","reason":{"type":"query_shard_exception","reason":"Can only use regexp queries on keyword and text fields - not on [tagging.num1] which is of type [long]","index_uuid":"JdeEIwULT1q6qji2PZghNQ","index":"ml_ais_flow"}}],"suppressed":[{"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"ml_ais_flow","node":"Y5lyy8YHRRucKAE2vYcEYw","reason":{"type":"query_shard_exception","reason":"Can only use regexp queries on keyword and text fields - not on [tagging.num1] which is of type [long]","index_uuid":"JdeEIwULT1q6qji2PZghNQ","index":"ml_ais_flow"}}]},{"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"ml_ais_flow","node":"Y5lyy8YHRRucKAE2vYcEYw","reason":{"type":"query_shard_exception","reason":"Can only use regexp queries on keyword and text fields - not on [tagging.num1] which is of type [long]","index_uuid":"JdeEIwULT1q6qji2PZghNQ","index":"ml_ais_flow"}}]}]},"status":400}
		at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:302)
		at org.elasticsearch.client.RestClient.performRequest(RestClient.java:272)
		at org.elasticsearch.client.RestClient.performRequest(RestClient.java:246)
		at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1613)
		... 8 more

@WilliGautier WilliGautier added the type:bug Something isn't working label Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant