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

HIVE-28240: Compaction requests remain in Working state after Timeout… #5230

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

difin
Copy link
Contributor

@difin difin commented Apr 30, 2024

…Exception

What changes were proposed in this pull request?

When a compaction worker receive TimeoutException during execution of a compaction request, it attempts to cancel a running compaction by calling cancel on a compaction's Future object and by killing and recreating a compaction executor. However, we got a case on a downstream code where calling the cancel method on the compaction's future object didn't stop the compaction requests and they remained in the Working status. These changes propose marking compaction request as Failed to ensure that it doesn't stay in Working status.

Why are the changes needed?

To ensure that a compaction request doesn't stay in Working status after TimeoutException.

Does this PR introduce any user-facing change?

No

Is the change a dependency upgrade?

How was this patch tested?

Pre-commit tests.

Copy link

sonarcloud bot commented Apr 30, 2024

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@InvisibleProgrammer
Copy link
Contributor

Hi, could you please cover that with a test?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants