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

HDDS-2648. TestOzoneManagerDoubleBufferWithOMResponse. #600

Merged
merged 2 commits into from Feb 25, 2020

Conversation

bharatviswa504
Copy link
Contributor

What changes were proposed in this pull request?

Fix flaky test.

The issue with testDoubleBufferWithMixOfTransactionsParallel is because the lastAppliedIndex can be exactly not equal to total transaction count. This is because in 2 threads executing createBucket

T1- CreateBucket
T2-CreateBucket

T2 got lock first and put in double buffer and updateLastAppliedIndex to 2, and then when T1 executes it updates it to 1. So, just in parallel test checked that it is less than or equal to total transaction count.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-2648

How was this patch tested?

This is a test only change.

Copy link
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

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

@adoroszlai adoroszlai merged commit 980b7cf into apache:master Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants