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

Context Deadline Exceeded for Queries taking more than 60 seconds #292

Open
shadowshot-x opened this issue Mar 7, 2025 · 4 comments
Open

Comments

@shadowshot-x
Copy link

Hi Trino Team,

We are facing Context Deadline Exceeded for Queries taking more than 60 seconds.

Trino Plugin Version : 1.10

Error

error querying the database: trino: query failed (0 ): "Get \"URL/v1/statement/executing/20250307_141544_00014_npm38/y7e7b015e9e6b14cb14540e9efd7eedf612336e9c/47\": context deadline exceeded"

We have given a 3 minute timeout in Datasource Settings. Can someone please help

@nineinchnick
Copy link
Member

This is an issue in the Trino Go driver: trinodb/trino-go-client#131

@shadowshot-x
Copy link
Author

Thank you @nineinchnick, I was able to get around this issue by increasing the context deadline and modifying the Plugin code. Maybe we can call context with timeout while initializing driver

@peterbroadbent
Copy link

Thank you @nineinchnick, I was able to get around this issue by increasing the context deadline and modifying the Plugin code. Maybe we can call context with timeout while initializing driver

Are you able to share how you achieved this please?

@shadowshot-x
Copy link
Author

@peterbroadbent I am not proud of the solution as its hacky.

  1. Cloned the trino-go in Trino Grafana Plugin.
  2. Replaced the external call to trino-go with the internal clone
  3. Increased context deadline for internal clone
  4. Packaged and built my own plugin using DEVELOPMENT.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants