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

"Results have expired, rerun the query if needed" #3164

Open
jerryleooo opened this issue Jan 14, 2023 · 10 comments
Open

"Results have expired, rerun the query if needed" #3164

jerryleooo opened this issue Jan 14, 2023 · 10 comments
Assignees
Labels
BUG Issue type for reporting failure due to bug in functionality Prevent stale

Comments

@jerryleooo
Copy link

Describe the bug:

Global variables are not shared between different gunicorn workers.

Steps to reproduce it?

  1. Use the docker-compose to up the service, with following configurations:
gunicorn_work_class=eventlet
gunicorn_number_of_workers=8
  1. configure an interpreter with Athena/Trino/Presto + sqlalchemy
  2. use 2 different browser tabs to submit queries in editor, and you may see the Results have expired, rerun the query if needed. error

Hue version or source?

open source 4.10.0

@jerryleooo jerryleooo changed the title Global variables are not shared between different gunicorn workers. "Results have expired, rerun the query if needed" Jan 14, 2023
@sbbagal13
Copy link

sbbagal13 commented Jan 18, 2023

I too observed similar issue with Trino

@bjornalm
Copy link
Collaborator

Hi @jerryleooo, thanks for reporting this. Do you know if this happens with other interpreters as well?

@Harshg999 can you have a look?

@jerryleooo
Copy link
Author

Hi @bjornalm I haven't tried other interpreters, later i may try jdbc and update here

@bjornalm bjornalm added the BUG Issue type for reporting failure due to bug in functionality label Feb 16, 2023
@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity and is not labeled "Prevent stale". Remove "stale" label or comment or this will be closed in 10 days.

@sbbagal13
Copy link

sbbagal13 commented Mar 30, 2023

Is it resolved in recent release or do we need to change the interpreter for this ?
CC: @bjornalm @Harshg999

@bjornalm bjornalm removed the Stale label Mar 31, 2023
@bjornalm bjornalm reopened this Mar 31, 2023
@vpattar
Copy link

vpattar commented Apr 26, 2023

I too observed similar issue with Trino, which is connected through a VPC endpoint.

Is there a known workaround to this?

@jerryleooo
Copy link
Author

jerryleooo commented Apr 26, 2023

@vpattar now I use gunicorn_work_class=sync and gunicorn_number_of_workers=1, and running 3 instances behind a LB

@Harshg999
Copy link
Collaborator

With Gunicorn now, we need to relook and scope how to share global variable state. I've created an internal roadmap item for this issue and will take it up for subsequent releases.
Thanks for flagging this @jerryleooo.

@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity and is not labeled "Prevent stale". Remove "stale" label or comment or this will be closed in 10 days.

@hackeryang
Copy link

I also met this error using StarRocks(compatible with mysql protocol), and when i used the mysql JDBC configuration way, it worked and returned query results. Maybe the sqlalchemy way has some session or connection bugs.

You can also try the JDBC way(need to upload JDK and execute $HUE_HOME/build/env/bin/pip install py4j ahead): https://docs.gethue.com/administrator/configuration/connectors/#mysql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Issue type for reporting failure due to bug in functionality Prevent stale
Projects
None yet
Development

No branches or pull requests

8 participants