Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-3107 HDFS truncate
  3. HDFS-7643

Test case to ensure lazy persist files cannot be truncated

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.0
    • Fix Version/s: 2.7.0
    • Component/s: test
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Task to add test case for HDFS-7634. Ensure that an attempt to truncate a file created with LAZY_PERSIST policy is failed by the NameNode. For reference see TestLazyPersistFiles#testAppendIsDenied.

        Issue Links

          Activity

          Hide
          hitliuyi Yi Liu added a comment -

          Agree that we'd better to have a test. Sorry for not having one for HDFS-7634.
          Attach the test.

          Show
          hitliuyi Yi Liu added a comment - Agree that we'd better to have a test. Sorry for not having one for HDFS-7634 . Attach the test.
          Hide
          arpitagarwal Arpit Agarwal added a comment -

          +1 pending Jenkins.

          Thank you for the prompt fix Yi Liu.

          Show
          arpitagarwal Arpit Agarwal added a comment - +1 pending Jenkins. Thank you for the prompt fix Yi Liu .
          Hide
          hadoopqa Hadoop QA added a comment -

          +1 overall. Here are the results of testing the latest attachment
          http://issues.apache.org/jira/secure/attachment/12693475/HDFS-7643.001.patch
          against trunk revision fc20129.

          +1 @author. The patch does not contain any @author tags.

          +1 tests included. The patch appears to include 1 new or modified test files.

          +1 javac. The applied patch does not increase the total number of javac compiler warnings.

          +1 javadoc. There were no new javadoc warning messages.

          +1 eclipse:eclipse. The patch built with eclipse:eclipse.

          +1 findbugs. The patch does not introduce any new Findbugs (version 2.0.3) warnings.

          +1 release audit. The applied patch does not increase the total number of release audit warnings.

          +1 core tests. The patch passed unit tests in hadoop-hdfs-project/hadoop-hdfs.

          Test results: https://builds.apache.org/job/PreCommit-HDFS-Build/9287//testReport/
          Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/9287//console

          This message is automatically generated.

          Show
          hadoopqa Hadoop QA added a comment - +1 overall . Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12693475/HDFS-7643.001.patch against trunk revision fc20129. +1 @author . The patch does not contain any @author tags. +1 tests included . The patch appears to include 1 new or modified test files. +1 javac . The applied patch does not increase the total number of javac compiler warnings. +1 javadoc . There were no new javadoc warning messages. +1 eclipse:eclipse . The patch built with eclipse:eclipse. +1 findbugs . The patch does not introduce any new Findbugs (version 2.0.3) warnings. +1 release audit . The applied patch does not increase the total number of release audit warnings. +1 core tests . The patch passed unit tests in hadoop-hdfs-project/hadoop-hdfs. Test results: https://builds.apache.org/job/PreCommit-HDFS-Build/9287//testReport/ Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/9287//console This message is automatically generated.
          Hide
          arpitagarwal Arpit Agarwal added a comment -

          Committed to trunk. Thanks again for the patch Yi Liu.

          Show
          arpitagarwal Arpit Agarwal added a comment - Committed to trunk. Thanks again for the patch Yi Liu .
          Hide
          xyao Xiaoyu Yao added a comment -

          LGTM. +1 (non-binding)

          Show
          xyao Xiaoyu Yao added a comment - LGTM. +1 (non-binding)
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-trunk-Commit #6900 (See https://builds.apache.org/job/Hadoop-trunk-Commit/6900/)
          HDFS-7643. Test case to ensure lazy persist files cannot be truncated. (Contributed by Yi Liu) (arp: rev 6b17eb9eac7a6073750a062830054efb103059f5)

          • hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
          • hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/TestLazyPersistFiles.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-trunk-Commit #6900 (See https://builds.apache.org/job/Hadoop-trunk-Commit/6900/ ) HDFS-7643 . Test case to ensure lazy persist files cannot be truncated. (Contributed by Yi Liu) (arp: rev 6b17eb9eac7a6073750a062830054efb103059f5) hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/TestLazyPersistFiles.java
          Hide
          hitliuyi Yi Liu added a comment -

          Thanks Arpit and Xiaoyu for review and commit.

          Show
          hitliuyi Yi Liu added a comment - Thanks Arpit and Xiaoyu for review and commit.
          Hide
          arpitagarwal Arpit Agarwal added a comment -

          Thanks for the review Xiaoyu Yao.

          Show
          arpitagarwal Arpit Agarwal added a comment - Thanks for the review Xiaoyu Yao .
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Yarn-trunk #814 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/814/)
          HDFS-7643. Test case to ensure lazy persist files cannot be truncated. (Contributed by Yi Liu) (arp: rev 6b17eb9eac7a6073750a062830054efb103059f5)

          • hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
          • hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/TestLazyPersistFiles.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Yarn-trunk #814 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/814/ ) HDFS-7643 . Test case to ensure lazy persist files cannot be truncated. (Contributed by Yi Liu) (arp: rev 6b17eb9eac7a6073750a062830054efb103059f5) hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/TestLazyPersistFiles.java
          Hide
          hudson Hudson added a comment -

          SUCCESS: Integrated in Hadoop-Yarn-trunk-Java8 #80 (See https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/80/)
          HDFS-7643. Test case to ensure lazy persist files cannot be truncated. (Contributed by Yi Liu) (arp: rev 6b17eb9eac7a6073750a062830054efb103059f5)

          • hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
          • hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/TestLazyPersistFiles.java
          Show
          hudson Hudson added a comment - SUCCESS: Integrated in Hadoop-Yarn-trunk-Java8 #80 (See https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/80/ ) HDFS-7643 . Test case to ensure lazy persist files cannot be truncated. (Contributed by Yi Liu) (arp: rev 6b17eb9eac7a6073750a062830054efb103059f5) hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/TestLazyPersistFiles.java
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #77 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/77/)
          HDFS-7643. Test case to ensure lazy persist files cannot be truncated. (Contributed by Yi Liu) (arp: rev 6b17eb9eac7a6073750a062830054efb103059f5)

          • hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
          • hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/TestLazyPersistFiles.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #77 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/77/ ) HDFS-7643 . Test case to ensure lazy persist files cannot be truncated. (Contributed by Yi Liu) (arp: rev 6b17eb9eac7a6073750a062830054efb103059f5) hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/TestLazyPersistFiles.java
          Hide
          hudson Hudson added a comment -

          SUCCESS: Integrated in Hadoop-Hdfs-trunk #2012 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/2012/)
          HDFS-7643. Test case to ensure lazy persist files cannot be truncated. (Contributed by Yi Liu) (arp: rev 6b17eb9eac7a6073750a062830054efb103059f5)

          • hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
          • hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/TestLazyPersistFiles.java
          Show
          hudson Hudson added a comment - SUCCESS: Integrated in Hadoop-Hdfs-trunk #2012 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/2012/ ) HDFS-7643 . Test case to ensure lazy persist files cannot be truncated. (Contributed by Yi Liu) (arp: rev 6b17eb9eac7a6073750a062830054efb103059f5) hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/TestLazyPersistFiles.java
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Mapreduce-trunk-Java8 #81 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/81/)
          HDFS-7643. Test case to ensure lazy persist files cannot be truncated. (Contributed by Yi Liu) (arp: rev 6b17eb9eac7a6073750a062830054efb103059f5)

          • hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/TestLazyPersistFiles.java
          • hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Mapreduce-trunk-Java8 #81 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/81/ ) HDFS-7643 . Test case to ensure lazy persist files cannot be truncated. (Contributed by Yi Liu) (arp: rev 6b17eb9eac7a6073750a062830054efb103059f5) hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/TestLazyPersistFiles.java hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
          Hide
          hudson Hudson added a comment -

          SUCCESS: Integrated in Hadoop-Mapreduce-trunk #2031 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2031/)
          HDFS-7643. Test case to ensure lazy persist files cannot be truncated. (Contributed by Yi Liu) (arp: rev 6b17eb9eac7a6073750a062830054efb103059f5)

          • hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
          • hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/TestLazyPersistFiles.java
          Show
          hudson Hudson added a comment - SUCCESS: Integrated in Hadoop-Mapreduce-trunk #2031 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2031/ ) HDFS-7643 . Test case to ensure lazy persist files cannot be truncated. (Contributed by Yi Liu) (arp: rev 6b17eb9eac7a6073750a062830054efb103059f5) hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/TestLazyPersistFiles.java
          Hide
          shv Konstantin Shvachko added a comment -

          Merged to branch-2.

          Show
          shv Konstantin Shvachko added a comment - Merged to branch-2.

            People

            • Assignee:
              hitliuyi Yi Liu
              Reporter:
              arpitagarwal Arpit Agarwal
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development