Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-11097

Fix the jenkins warning related to the deprecated method StorageReceivedDeletedBlocks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha2
    • None
    • None
    • Reviewed

    Description

      After HDFS-6094, it updated the constrcut method of StorageReceivedDeletedBlocks and let it good to use. We can pass not only the storage type and state as well. But this new method isn't updated in some test case and it cause many warnings in each jenkins buildings. The part of warning infos:

      [WARNING] /testptch/hadoop/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestIncrementalBrVariations.java:[175,12] [deprecation] StorageReceivedDeletedBlocks(String,ReceivedDeletedBlockInfo[]) in StorageReceivedDeletedBlocks has been deprecated
      [WARNING] /testptch/hadoop/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestPendingReconstruction.java:[315,14] [deprecation] StorageReceivedDeletedBlocks(String,ReceivedDeletedBlockInfo[]) in StorageReceivedDeletedBlocks has been deprecated
      [WARNING] /testptch/hadoop/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestPendingReconstruction.java:[333,14] [deprecation] StorageReceivedDeletedBlocks(String,ReceivedDeletedBlockInfo[]) in StorageReceivedDeletedBlocks has been deprecated
      

      Attachments

        1. warn.txt
          17 kB
          Yiqun Lin
        2. HDFS-11097.001.patch
          9 kB
          Yiqun Lin

        Issue Links

          Activity

            People

              linyiqun Yiqun Lin
              linyiqun Yiqun Lin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: