ClickHouse / ClickHouse

ClickHouse® is a real-time analytics DBMS
https://clickhouse.com
Apache License 2.0
37.13k stars 6.85k forks source link

vector.dev is unable to use new Clickhouse because of excessive / #58730

Closed den-crane closed 9 months ago

den-crane commented 9 months ago

vector uses this query as a healtcheck http://endpoint//?query=select%201'

and with new Clickhouse it's broken because of //

23.11.3.23

curl 'http://localhost:8123//?query=select%201'
There is no handle //?query=select%201

23.8.9.54

curl 'http://localhost:8123//?query=select%201'
1
/etc/vector/vector.toml
...
    endpoint = "http://chdwrep1:8123"
...

RUST_BACKTRACE=full /usr/bin/vector  --verbose -c /etc/vector/vector.toml

DEBUG http: vector::internal_events::http_client: Sending HTTP request. uri=http://chdwrep1:8123//?query=SELECT%201 method=GET version=HTTP/1.1 headers={"authorization": Sensitive, "user-agent": "Vector/0.16.1 (x86_64-unknown-linux-gnu 739e878 2021-08-26)", "accept-encoding": "identity"} body=[empty]

ERROR vector::topology::builder: msg="Healthcheck: Failed Reason." error=Unexpected status: 404 Not Found component_kind="sink" component_type="clickhouse" component_id=ars-clickhouse-output-clickhouse component_name=ars-clickhouse-output-clickhouse
den-crane commented 9 months ago

Though, new versions of vector has no this problem

alexey-milovidov commented 9 months ago

Ok. This is highlighted in the changelog.