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

fix(errors): Downgrade error on stop query to a warning #13826

Merged
merged 1 commit into from
Mar 29, 2021

Conversation

willbarrett
Copy link
Member

SUMMARY

When a user attempts to stop a query that has already been stopped, the software logs an exception. As this is a very likely outcome as there's a natural race condition between the query ending and the user clicking stop, I am downgrading this exception logging to a warning.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TEST PLAN

  • Stop a query that has already been stopped
  • Observe the lower logging level

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

@codecov
Copy link

codecov bot commented Mar 26, 2021

Codecov Report

Merging #13826 (e2a2884) into master (a45a5e1) will decrease coverage by 0.13%.
The diff coverage is 0.00%.

❗ Current head e2a2884 differs from pull request most recent head e7924e5. Consider uploading reports for the commit e7924e5 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master   #13826      +/-   ##
==========================================
- Coverage   77.54%   77.40%   -0.14%     
==========================================
  Files         934      934              
  Lines       47249    47337      +88     
  Branches     5892     5936      +44     
==========================================
+ Hits        36641    36643       +2     
- Misses      10464    10550      +86     
  Partials      144      144              
Flag Coverage Δ
cypress 56.16% <ø> (+0.11%) ⬆️
hive ?
mysql 80.58% <0.00%> (ø)
postgres 80.61% <0.00%> (ø)
presto 80.28% <0.00%> (+<0.01%) ⬆️
python 80.86% <0.00%> (-0.26%) ⬇️
sqlite 80.17% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
superset/views/core.py 75.62% <0.00%> (ø)
superset/db_engines/hive.py 0.00% <0.00%> (-82.15%) ⬇️
superset/db_engine_specs/hive.py 74.23% <0.00%> (-16.54%) ⬇️
...erset-frontend/src/SqlLab/components/ResultSet.tsx 61.83% <0.00%> (-6.82%) ⬇️
...set-frontend/src/dashboard/util/getDropPosition.js 90.90% <0.00%> (-1.52%) ⬇️
superset-frontend/src/components/Loading/index.tsx 100.00% <0.00%> (ø)
superset/db_engine_specs/presto.py 88.70% <0.00%> (+0.41%) ⬆️
...ters/FiltersConfigModal/FiltersConfigForm/state.ts 90.24% <0.00%> (+1.35%) ⬆️
superset-frontend/src/explore/store.js 95.12% <0.00%> (+2.26%) ⬆️
...veFilters/FilterBar/FilterControls/FilterValue.tsx 88.75% <0.00%> (+3.29%) ⬆️
... and 3 more

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 a45a5e1...e7924e5. Read the comment docs.

@willbarrett willbarrett merged commit 84560e8 into apache:master Mar 29, 2021
@willbarrett willbarrett deleted the wbarrett/downgrade-noisy-error branch March 29, 2021 20:52
amitmiran137 pushed a commit that referenced this pull request Mar 31, 2021
* master: (56 commits)
  test: Adds tests and storybook to CertifiedIcon component (#13457)
  chore: Moves CheckboxIcons to Checkbox folder (#13459)
  chore: Removes Popover duplication (#13462)
  build(deps): bump elliptic from 6.5.3 to 6.5.4 in /docs (#13527)
  fix: allow spaces in DB names (#13800)
  chore: Update PR template for SIP-59 DB migrations process (#13855)
  Add CODEOWNERS (#13759)
  feat(alerts & reports): Easier to read execution logs (#13752)
  fix: Disallows negative options remaining (#13749)
  Fix broken link (#13861)
  fix(native-filters): add global async query support to native filters (#13837)
  Displays row limit warning with Alert component (#13854)
  fix(errors): Downgrade error on stop query to a warning (#13826)
  fix(alerts and reports): Unify timestamp format on execution log view (#13718)
  fix(sqllab): warning message when rows limited (#13841)
  chore: add success log whenever a connection is working (#13811)
  fix(native-filters): improve loading styles for filter component (#13794)
  chore: update change log with cherry-picks for release 1.1 (#13824)
  feat: added support to configure the default explorer viz (#13610)
  fix(#13734): Properly escape special characters in CSV output  (#13735)
  ...
allanco91 pushed a commit to allanco91/superset that referenced this pull request May 21, 2021
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.2.0 labels Mar 12, 2024
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 preset-io size/XS 🚢 1.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants