[ 
https://issues.apache.org/jira/browse/HDFS-10642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arpit Agarwal updated HDFS-10642:
---------------------------------
          Resolution: Fixed
        Hadoop Flags: Reviewed
       Fix Version/s: 2.8.0
    Target Version/s:   (was: 2.8.0)
              Status: Resolved  (was: Patch Available)

Committed through to branch-2.8.

branch-2 required a change to compile. I made the change during commit since it 
was trivial.
{code}
diff --git 
a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/LazyPersistTestCase.java
 b/hadoop-hdf
index 799d5d1..4a01e55 100644
--- 
a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/LazyPersistTestCase.java
+++ 
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/LazyPersistTestCase.java
@@ -130,12 +130,12 @@ public void shutDownCluster() throws Exception {
   public Timeout timeout = new Timeout(300000);

   protected final LocatedBlocks ensureFileReplicasOnStorageType(
-      Path path, StorageType storageType)
+      final Path path, final StorageType storageType)
       throws IOException, TimeoutException, InterruptedException {
     // Ensure that returned block locations returned are correct!
     LOG.info("Ensure path: " + path + " is on StorageType: " + storageType);
     assertThat(fs.exists(path), is(true));
-    long fileLength = client.getFileInfo(path.toString()).getLen();
+    final long fileLength = client.getFileInfo(path.toString()).getLen();
{code}

> TestLazyPersistReplicaRecovery#testDnRestartWithSavedReplicas fails 
> intermittently
> ----------------------------------------------------------------------------------
>
>                 Key: HDFS-10642
>                 URL: https://issues.apache.org/jira/browse/HDFS-10642
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: datanode, test
>            Reporter: Mingliang Liu
>            Assignee: Mingliang Liu
>             Fix For: 2.8.0
>
>         Attachments: HDFS-10642.000.patch, HDFS-10642.001.patch
>
>
> See [example stack trace | 
> https://builds.apache.org/job/PreCommit-HADOOP-Build/10001/testReport/org.apache.hadoop.hdfs.server.datanode.fsdataset.impl/TestLazyPersistReplicaRecovery/testDnRestartWithSavedReplicas/].
> h6. Error Message
> {code}
>  Expected: is <DISK>
>      but: was <RAM_DISK>
> {code}
> h6. Stacktrace
> {code}
> java.lang.AssertionError: 
> Expected: is <DISK>
>      but: was <RAM_DISK>
>       at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
>       at org.junit.Assert.assertThat(Assert.java:865)
>       at org.junit.Assert.assertThat(Assert.java:832)
>       at 
> org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.LazyPersistTestCase.ensureFileReplicasOnStorageType(LazyPersistTestCase.java:141)
>       at 
> org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.TestLazyPersistReplicaRecovery.testDnRestartWithSavedReplicas(TestLazyPersistReplicaRecovery.java:53)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to