You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/10/13 20:52:11 UTC
[GitHub] [superset] a-cid opened a new issue #17099: [mixed time series chart] [Global Async Queries] Chart rendering fails
a-cid opened a new issue #17099:
URL: https://github.com/apache/superset/issues/17099
The following error is thrown when loading a Mixed time-series chart with the Global Async Queries feature turned on:
![image](https://user-images.githubusercontent.com/834150/137209186-026387ec-9b44-448e-acf3-12879e2febe2.png)
Here's my superset_config_docker.py:
```
import os
from typing import Optional
def get_env_variable(var_name: str, default: Optional[str] = None) -> str:
"""Get the environment variable or raise exception."""
try:
return os.environ[var_name]
except KeyError:
if default is not None:
return default
else:
error_msg = "The environment variable {} was missing, abort...".format(
var_name
)
raise EnvironmentError(error_msg)
REDIS_HOST = get_env_variable("REDIS_HOST")
REDIS_PORT = get_env_variable("REDIS_PORT")
FEATURE_FLAGS = {
"GLOBAL_ASYNC_QUERIES": True
}
GLOBAL_ASYNC_QUERIES_JWT_SECRET = 'v2jHEh8gG2yw56ReLEvGwGTSgETRu26U'
GLOBAL_ASYNC_QUERIES_REDIS_CONFIG = {
"port": REDIS_PORT,
"host": REDIS_HOST,
"password": "",
"db": 0,
"ssl": False,
}
DATA_CACHE_CONFIG = {
'CACHE_TYPE': 'redis',
'CACHE_DEFAULT_TIMEOUT': 60 * 5, # 5 minutes
'CACHE_KEY_PREFIX': 'superset_results',
'CACHE_REDIS_URL': 'redis://%s:%s/0' % (REDIS_HOST, REDIS_PORT),
}
CACHE_CONFIG = {
'CACHE_TYPE': 'redis',
'CACHE_DEFAULT_TIMEOUT': 60 * 5, # 5 minutes
'CACHE_KEY_PREFIX': 'superset_cache',
'CACHE_REDIS_URL': 'redis://%s:%s/0' % (REDIS_HOST, REDIS_PORT),
}
```
The following error is raised in the browser console:
```
TypeError: queriesData[1] is undefined
transformProps transformProps.js:45
processChartProps SuperChartCore.js:37
memoizedResultFunc index.js:70
defaultMemoize index.js:30
selector index.js:84
defaultMemoize index.js:30
renderChart SuperChartCore.js:66
render index.js:241
finishClassComponent react-dom.development.js:17185
updateClassComponent react-dom.development.js:17135
beginWork react-dom.development.js:18654
callCallback react-dom.development.js:189
invokeGuardedCallbackDev react-dom.development.js:238
invokeGuardedCallback react-dom.development.js:293
beginWork$1 react-dom.development.js:23235
performUnitOfWork react-dom.development.js:22189
workLoopSync react-dom.development.js:22162
performSyncWorkOnRoot react-dom.development.js:21788
flushSyncCallbackQueueImpl react-dom.development.js:11112
unstable_runWithPriority scheduler.development.js:653
runWithPriority$1 react-dom.development.js:11062
flushSyncCallbackQueueImpl react-dom.development.js:11107
flushSyncCallbackQueue react-dom.development.js:11095
batchedUpdates$1 react-dom.development.js:21894
Redux 4
notify
notifyNestedSubs
handleChangeWrapper
dispatch
loggerMiddleware loggerMiddleware.js:68
Redux 2
createThunkMiddleware
dispatch
chartDataRequestCaught chartAction.js:437
Chart.jsx:150
```
#### How to reproduce the bug
1. Checkout 1.3.1
2. Fill in superset config cited above.
3. Start superset using docker-compose
4. Create a mixed time-series chart.
5. Run it once to fill cache, then try rerunning or refreshing the cache.
6. See error.
### Expected results
The chart to load correctly.
### Actual results
Chart fails to load, it appears the frontend only receives the results for the first query.
#### Screenshots
If applicable, add screenshots to help explain your problem.
### Environment
(please complete the following information):
- browser type and version: Firefox 93.0 and Chromium 94.0.4606.81
- superset version: 1.3.1
- python version: 3.8
- node.js version: v14.18.1
- any feature flags active: GLOBAL_ASYNC_QUERIES
### Checklist
Make sure to follow these steps before submitting your issue - thank you!
- [x] I have checked the superset logs for python stacktraces and included it here as text if there are any.
- [x] I have reproduced the issue with at least the latest released version of superset.
- [x] I have checked the issue tracker for the same issue and I haven't found one similar.
### Additional context
Chart was working in 1.2.0
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] mayurnewase commented on issue #17099: [mixed time series chart] [Global Async Queries] Chart rendering fails
Posted by GitBox <gi...@apache.org>.
mayurnewase commented on issue #17099:
URL: https://github.com/apache/superset/issues/17099#issuecomment-943285892
I couldn't reproduce this in latest master, but found another issue.
When cache is not found it goes in infinite loop calling `v1/async_event/`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] cesar-loadsmart commented on issue #17099: [mixed time series chart] [Global Async Queries] Chart rendering fails
Posted by GitBox <gi...@apache.org>.
cesar-loadsmart commented on issue #17099:
URL: https://github.com/apache/superset/issues/17099#issuecomment-1002565175
Is this fix available in a release? if yes, which one?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org