Skip to content

[sql lab] fix stuck offline - #6782

Merged
mistercrunch merged 1 commit into
apache:masterfrom
mistercrunch:fix_offline
Jan 30, 2019
Merged

mistercrunch merged 1 commit into
apache:masterfrom
mistercrunch:fix_offline

Conversation

@mistercrunch

@mistercrunch mistercrunch commented Jan 30, 2019 •

Copy link
Copy Markdown
Member

Hit this weird bug where I got stuck offline, there appeared to be no easy way to get out of that bad state. Couldn't create a new tab for reasons I don't understand. Probably the only solution would be to nuke localstorage in the browser (and loose all unsaved tabs/queries)

screen shot 2019-01-29 at 10 22 52 pm

Polling only happens when there are running queries, so I'm guessing there are race conditions where there's no more polling happening and the UI is stuck reporting offline

Likely the bug was introduced here #6013

This was reported at Lyft earlier this week too I think

@timifasubaa @vylc @betodealmeida

This could also be improved by polling while offline, but I think it's also imperfect as it would not report on a case where no queries are running and the computer becomes offline. We could also poll all the time, but that's not a great idea as it would generate significantly more [not super useful] traffic in large environments.

I'd say merge this asap to fix the bug and re-think what offline means and the requirements around it.

@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #6782 into master will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6782      +/-   ##
==========================================
- Coverage   56.07%   56.07%   -0.01%     
==========================================
  Files         526      526              
  Lines       23257    23258       +1     
  Branches     2782     2782              
==========================================
  Hits        13042    13042              
- Misses       9806     9807       +1     
  Partials      409      409
Impacted Files Coverage Δ
.../assets/src/SqlLab/components/QueryAutoRefresh.jsx 12.82% <0%> (-0.34%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 11a7ad0...0b6be19. Read the comment docs.

@timifasubaa

Copy link
Copy Markdown
Contributor

Thanks for catching and fixing this

@mistercrunch
mistercrunch merged commit 36176f3 into apache:master Jan 30, 2019
@mistercrunch
mistercrunch deleted the fix_offline branch January 30, 2019 19:12
@xtinec xtinec added the v0.31 label Feb 8, 2019
xtinec pushed a commit that referenced this pull request Feb 8, 2019
(cherry picked from commit 36176f3)
graceguo-supercat pushed a commit that referenced this pull request Feb 8, 2019
(cherry picked from commit 36176f3)
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.34.0 First shipped in 0.34.0 labels Feb 28, 2024
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels v0.31 🚢 0.34.0 First shipped in 0.34.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants