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

Read timed out | socket_timeout does not work #86

Open
KrisAnTis-Group opened this issue Jun 20, 2022 · 0 comments
Open

Read timed out | socket_timeout does not work #86

KrisAnTis-Group opened this issue Jun 20, 2022 · 0 comments

Comments

@KrisAnTis-Group
Copy link

KrisAnTis-Group commented Jun 20, 2022

We have problems with Read timed.
We use Metriql to bundle dbt, ClickHouse, Metriql, Google Data Studio technologies.

We have set our configurations after the update (1e6c717) в

'connection_parameters': {
                        'connect_timeout': 40 * 1000,
                        'socket_timeout': 5 * 60 * 1000,
                    },

However, it didn't help. We use a simple query for testing:

select sleepEachRow(3) from numbers(25)

Which returns the following query from the database (used by DBeaver with increased socket_timeout settings):
image

However, attempting to evaluate this query using metriql returns an error:

curl --location --request POST 'https://metriql.****.io/api/v0/query' \
--header 'Authorization: Basic ***REPLASE***=' \
--header 'Content-Type: application/json' \
--data-raw '{
    "type": "sql",
    "report": {
        "query": "select sleepEachRow(3) from numbers(25)"
    }
}'

We get the following response:

{
    "id": "****",
    "startedAt": "2022-06-20T08:27:19.707825Z",
    "duration": 30.036700000,
    "user": "****",
    "source": null,
    "status": "failed",
    "update": {
        "state": "FINISHED",
        "info": {
            "reportType": "sql",
            "query": {
                "query": "select sleepEachRow(3) from numbers(25)",
                "queryOptions": null,
                "variables": null,
                "reportOptions": null
            },
            "compiledQuery": "select sleepEachRow(3) from numbers(25)"
        },
        "nodes": 1,
        "percentage": null,
        "elapsedTimeMillis": null,
        "totalBytes": null,
        "processedBytes": null
    },
    "result": {
        "metadata": null,
        "result": null,
        "error": {
            "message": "Read timed out, server ClickHouseNode(addr=***:8123, db=****)@846585128, Cause: Read timed out",
            "sqlState": "07000",
            "errorCode": 159,
            "errorLine": null,
            "charPositionInLine": null
        },
        "properties": {
            "limit": 1000,
            "query": "select sleepEachRow(3) from numbers(25)"
        },
        "responseHeaders": null
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant