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

Add reusable smoke test coverage for concurrent UPDATE #10368

Merged
merged 1 commit into from
Jan 10, 2022

Conversation

findepi
Copy link
Member

@findepi findepi commented Dec 21, 2021

No description provided.

verifyConcurrentUpdateFailurePermissible(trinoException);
}
catch (Throwable verifyFailure) {
if (trinoException != e && verifyFailure != e) {
Copy link
Member

Choose a reason for hiding this comment

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

why trinoException != e?

Copy link
Member Author

Choose a reason for hiding this comment

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

because trinoException == e implies that attaching e as suppressed is kind of pointless.
verifyConcurrentUpdateFailurePermissible should be rethrowing trinoException

@findepi findepi force-pushed the findepi/test-concurrent-update branch from 553ebf8 to a6377b8 Compare January 5, 2022 12:58
@findepi findepi marked this pull request as ready for review January 5, 2022 12:58
@findepi findepi force-pushed the findepi/test-concurrent-update branch 4 times, most recently from 285b10a to b9f63a7 Compare January 10, 2022 12:24
public void testUpdateRowConcurrently()
throws Exception
{
// TODO (https://github.com/trinodb/trino/issues/10518) test this with a TestHiveConnectorTest version that creates ACID tables by default, or in some other way
Copy link
Member Author

Choose a reason for hiding this comment

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

@findepi findepi force-pushed the findepi/test-concurrent-update branch from b9f63a7 to cbac3c5 Compare January 10, 2022 12:26
@findepi findepi merged commit c8ded00 into trinodb:master Jan 10, 2022
@findepi findepi deleted the findepi/test-concurrent-update branch January 10, 2022 15:22
@github-actions github-actions bot added this to the 368 milestone Jan 10, 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.

2 participants