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

Better handling for runtime exception in Tablet.commit #5213

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

Conversation

dlmarion
Copy link
Contributor

Wrapped call to getTabletMemory().mutate() in try/finally so that a RuntimeException does not short circuit the code in the method that decrements the writes. Added logging in TabletClientHandler to note which client was causing the failure.

Closes #5208

Wrapped call to getTabletMemory().mutate() in try/finally
so that a RuntimeException does not short circuit the
code in the method that decrements the writes. Added
logging in TabletClientHandler to note which client
was causing the failure.

Closes apache#5208
@dlmarion dlmarion added this to the 2.1.4 milestone Dec 23, 2024
@dlmarion dlmarion self-assigned this Dec 23, 2024
Copy link
Contributor

@billoley billoley left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +893 to +896
numEntries += totalCount;
numEntriesInMemory += totalCount;
ingestCount += totalCount;
ingestBytes += totalBytes;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm thinking these might need to go between the mutate call and the finally statement.

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

Successfully merging this pull request may close these issues.

RuntimeException in Tablet.commit does not decrement writes in progress
3 participants