Skip to content

CCS controlling node returns a 500 when the data nodes return a 404 #27461

@chrisronline

Description

@chrisronline

I have a CCS environment setup, using the guide here. It contains two data nodes and one controlling node. Both data nodes contain the same index, test, with a single document in each. One data node is running off :9201, the other off :9202. The controlling node is running off :9220.

This request is good:

curl -XPOST localhost:9201/t/_search -i
HTTP/1.1 404 Not Found

However, this request is unexpected:

curl -XPOST localhost:9220/*:t/_search -i
HTTP/1.1 500 Internal Server Error

(curl -XPOST localhost:9220/cluster_one:t/_search -i and curl -XPOST localhost:9220/cluster_two:t/_search -i return the same 500 too.)

I'm assuming the connecting node is detecting the 404 from the data nodes and is converting that into a 500, but I'm not sure it should do that. The connecting node should probably inspect the type of error and return the same error type instead of the 500.

Metadata

Metadata

Assignees

Labels

:Search/SearchSearch-related issues that do not fall into other categories>bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions