hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mit Desai (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-6487) TestStandbyCheckpoint#testSBNCheckpoints is racy
Date Thu, 05 Jun 2014 16:52:02 GMT

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

Mit Desai commented on HDFS-6487:
---------------------------------

In testSBNCheckpoints, after doEdits() it waits for the SBN to do checkpoint and immediately
after that checks if the OIV image has been written. The race lies in between completion of
checkpoint and checking for OIV image.
I have added a wait for writing the OIV image. This prevents the test from failing due to
the race and if the OIV image is not written even after 5000ms, the test will fail. Which
is what is expected.

> TestStandbyCheckpoint#testSBNCheckpoints is racy
> ------------------------------------------------
>
>                 Key: HDFS-6487
>                 URL: https://issues.apache.org/jira/browse/HDFS-6487
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 3.0.0, 2.4.1
>            Reporter: Mit Desai
>            Assignee: Mit Desai
>         Attachments: HDFS-6487.patch
>
>
> testSBNCheckpoints fails occasionally.
> I could not reproduce it consistently but it would fail 8 out of 10 times after I did
mvn clean, mvn install and run the test



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message