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

Stateless -Cluster table functions (like s3Cluster) should always skip unavailable shards. #46314

Closed
alexey-milovidov opened this issue Feb 12, 2023 · 3 comments · Fixed by #46765
Assignees
Labels
easy task Good for first contributors enhancement

Comments

@alexey-milovidov
Copy link
Member

Because it does not make sense to force all shards to be available.

@alexey-milovidov
Copy link
Member Author

Not fixed.

clickhouse-cloud :) INSERT INTO wikistat WITH
    parseDateTimeBestEffort(extract(_file, '^pageviews-([\\d\\-]+)\\.gz$')) AS time,
    splitByChar(' ', line) AS values,
    splitByChar('.', values[1]) AS projects
SELECT
    time,
    projects[1] AS project,
    projects[2] AS subproject,
    decodeURLComponent(values[2]) AS path,
    CAST(values[3], 'UInt64') AS hits
FROM s3Cluster('default',
    'https://clickhouse-public-datasets.s3.amazonaws.com/wikistat/original/pageviews*.gz',
    'LineAsString')
WHERE length(values) >= 3;

INSERT INTO wikistat WITH
    parseDateTimeBestEffort(extract(_file, '^pageviews-([\\d\\-]+)\\.gz$')) AS time,
    splitByChar(' ', line) AS values,
    splitByChar('.', values[1]) AS projects
SELECT
    time,
    projects[1] AS project,
    projects[2] AS subproject,
    decodeURLComponent(values[2]) AS path,
    CAST(values[3], 'UInt64') AS hits
FROM s3Cluster('default', 'https://clickhouse-public-datasets.s3.amazonaws.com/wikistat/original/pageviews*.gz', 'LineAsString')
WHERE length(values) >= 3

Query id: 632c26ed-e920-494d-b815-970b96d41e58

↘ Progress: 0.00 rows, 0.00 B (0.00 rows/s., 0.00 B/s.)                                                                                                                                                                                                              (0.0 CPU, 189.58 MB RAM) 0%
Elapsed: 1.714 sec. 

Received exception from server (version 23.12.1):
Code: 198. DB::Exception: Received from ixfssb0z9s.eu-west-1.aws.clickhouse-staging.com:9440. DB::Exception: Not found address of host: c-denim-mi-40-server-f8cqs43-0.c-denim-mi-40-server-headless.ns-denim-mi-40.svc.cluster.local: While executing Remote. (DNS_ERROR)

@Avogar
Copy link
Member

Avogar commented Jan 17, 2024

It would be good to see the logs of this failed query and the stacktrace of an exception

@alexey-milovidov
Copy link
Member Author

Cannot reproduce.

I have a partially available cluster when some of the hosts don't resolve.
But everything works perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy task Good for first contributors enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants