Skip to content

Bug: Query cancel button doesn't stop query when clicked immediately after run #1194

@coderabbitai

Description

@coderabbitai

Bug Description

When a user clicks "Run" to start a Presto query and then immediately clicks "Cancel", the query doesn't actually stop executing.

Root Cause Hypothesis

This might be because Presto's cancel route returns success even if queries aren't submitted yet to the Presto engine.

Reproduction Steps

  1. Navigate to the search interface
  2. Enter a query
  3. Click "Run" button
  4. Immediately click "Cancel" button
  5. Observe that the query continues to execute instead of being cancelled

Expected Behavior

The query should be cancelled and stop executing when the Cancel button is clicked.

Additional Context

References

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions