Skip to content

HDDS-5318. Intermittent failure in TestOzoneManagerDoubleBufferWithOMResponse#2314

Merged
adoroszlai merged 2 commits intoapache:masterfrom
adoroszlai:HDDS-5318
Jun 9, 2021
Merged

HDDS-5318. Intermittent failure in TestOzoneManagerDoubleBufferWithOMResponse#2314
adoroszlai merged 2 commits intoapache:masterfrom
adoroszlai:HDDS-5318

Conversation

@adoroszlai
Copy link
Contributor

What changes were proposed in this pull request?

TestOzoneManagerDoubleBufferWithOMResponse is flaky because double buffer involves another thread. flushTransactions updates flushedTransactionCount, then somewhat later also updates lastAppliedIndex. The test waits for the former, but simply checks the latter with assertion. We need to wait for this update, too.

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

How was this patch tested?

Repeated TestOzoneManagerDoubleBufferWithOMResponse 50x:
https://github.com/adoroszlai/hadoop-ozone/runs/2771888499

Regular CI (pending):
https://github.com/adoroszlai/hadoop-ozone/actions/runs/918284218

@adoroszlai adoroszlai self-assigned this Jun 8, 2021
@adoroszlai adoroszlai requested a review from bharatviswa504 June 8, 2021 14:54
@adoroszlai adoroszlai merged commit d1dc91d into apache:master Jun 9, 2021
@adoroszlai
Copy link
Contributor Author

Thanks @hanishakoneru for the review.

@adoroszlai adoroszlai deleted the HDDS-5318 branch June 9, 2021 11:22
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.

2 participants