[
https://issues.apache.org/jira/browse/HDDS-1921?focusedWorklogId=290020&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-290020
]
ASF GitHub Bot logged work on HDDS-1921:
----------------------------------------
Author: ASF GitHub Bot
Created on: 06/Aug/19 21:55
Start Date: 06/Aug/19 21:55
Worklog Time Spent: 10m
Work Description: adoroszlai commented on pull request #1238: HDDS-1921.
TestOzoneManagerDoubleBufferWithOMResponse is flaky
URL: https://github.com/apache/hadoop/pull/1238
## What changes were proposed in this pull request?
Currently `testDoubleBuffer` waits for a specific transaction count and
checks `lastAppliedIndex`, which is updated last in `flushTransactions` on
another thread. I guess this may be the cause of flakiness. By swapping the
order in the test, we ensure that when the wait is over, all operations
(transaction count increase, etc.) are done.
https://issues.apache.org/jira/browse/HDDS-1921
## How was this patch tested?
Ran `TestOzoneManagerDoubleBufferWithOMResponse` a few times.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 290020)
Time Spent: 10m
Remaining Estimate: 0h
> TestOzoneManagerDoubleBufferWithOMResponse is flaky
> ---------------------------------------------------
>
> Key: HDDS-1921
> URL: https://issues.apache.org/jira/browse/HDDS-1921
> Project: Hadoop Distributed Data Store
> Issue Type: Bug
> Components: test
> Affects Versions: 0.4.1
> Reporter: Doroszlai, Attila
> Assignee: Doroszlai, Attila
> Priority: Minor
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> {noformat:title=https://ci.anzix.net/job/ozone/17588/testReport/org.apache.hadoop.ozone.om.ratis/TestOzoneManagerDoubleBufferWithOMResponse/testDoubleBuffer/}
> java.lang.AssertionError: expected:<11> but was:<9>
> ...
> at
> org.apache.hadoop.ozone.om.ratis.TestOzoneManagerDoubleBufferWithOMResponse.testDoubleBuffer(TestOzoneManagerDoubleBufferWithOMResponse.java:362)
> at
> org.apache.hadoop.ozone.om.ratis.TestOzoneManagerDoubleBufferWithOMResponse.testDoubleBuffer(TestOzoneManagerDoubleBufferWithOMResponse.java:104)
> {noformat}
> {noformat:title=https://ci.anzix.net/job/ozone/17587/testReport/org.apache.hadoop.ozone.om.ratis/TestOzoneManagerDoubleBufferWithOMResponse/unit___testDoubleBuffer/}
> java.lang.AssertionError: expected:<11> but was:<3>
> ...
> at
> org.apache.hadoop.ozone.om.ratis.TestOzoneManagerDoubleBufferWithOMResponse.testDoubleBuffer(TestOzoneManagerDoubleBufferWithOMResponse.java:362)
> at
> org.apache.hadoop.ozone.om.ratis.TestOzoneManagerDoubleBufferWithOMResponse.testDoubleBuffer(TestOzoneManagerDoubleBufferWithOMResponse.java:104)
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]