[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-1793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13797469#comment-13797469
 ] 

Thawan Kooburat commented on ZOOKEEPER-1793:
--------------------------------------------

I wasn't able to repro this on my mac.  The jenkins builds look very stable to 
me. I also don't have issue with this test in our internal branch as well.

When this assert fail, it means that observer didn't flush file to disk. So 
data read from disk by a separate thread did have the latest value.  

> Zab1_0Test.testNormalObserverRun() is flaky
> -------------------------------------------
>
>                 Key: ZOOKEEPER-1793
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1793
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: quorum, server, tests
>            Reporter: Alexander Shraer
>            Assignee: Thawan Kooburat
>
> not sure if this is due to a known issue or not.
> // check and make sure the change is persisted
> zkDb2 = new ZKDatabase(new FileTxnSnapLog(logDir, snapDir));
> lastZxid = zkDb2.loadDataBase();
> Assert.assertEquals("data2", new String(zkDb2.getData("/foo", stat, null)));
> this assert periodically (once every 3 runs of the test or so) fails saying 
> that  getData returns data1 and not data2.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to