Skip to content

Allow cancelling the query to cancel waiting for Hive lock#12705

Merged
findepi merged 1 commit intotrinodb:masterfrom
homar:homar/clean_up_hive_locks_in_waiting_stage
Jun 8, 2022
Merged

Allow cancelling the query to cancel waiting for Hive lock#12705
findepi merged 1 commit intotrinodb:masterfrom
homar:homar/clean_up_hive_locks_in_waiting_stage

Conversation

@homar
Copy link
Copy Markdown
Member

@homar homar commented Jun 6, 2022

Fixes #11798

Description

Related issues, pull requests, and links

Documentation

( ) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.

Release notes

( ) No release notes entries required.
( ) Release notes entries required with the following suggested text:

# Section
* Allows canceling a query to stop waiting for Hive lock. {{[11798](https://github.com/trinodb/trino/issues/11798)}}

@cla-bot cla-bot bot added the cla-signed label Jun 6, 2022
@homar homar requested review from findepi and losipiuk June 6, 2022 18:33
@findepi
Copy link
Copy Markdown
Member

findepi commented Jun 6, 2022

@homar please formulate RNs

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no comment on if this is the right solution, but if it is, I would move this synchronized block to a new synchronized method named getHiveTransaction

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i liked the synchronized (this) version more because it clearly conveyed the intent that the subsequent call is outside of the synchronization.

Either restore, or add a code comment documenting the intent.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer code to tell the story instead of comments so I will restore.

@homar homar force-pushed the homar/clean_up_hive_locks_in_waiting_stage branch 2 times, most recently from 187503d to fca09e5 Compare June 7, 2022 07:58
@homar homar force-pushed the homar/clean_up_hive_locks_in_waiting_stage branch from fca09e5 to 4e3e6f3 Compare June 7, 2022 22:40
@findepi findepi merged commit 1afed4f into trinodb:master Jun 8, 2022
@findepi findepi mentioned this pull request Jun 8, 2022
@github-actions github-actions bot added this to the 385 milestone Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Hive locks in waiting state still held indefinitely

3 participants