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

Update TestFileCreation#testLeaseExpireHardLimit() to avoid using DataNodeTestUtils#getFile()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.7.1
    • 2.8.0, 3.0.0-alpha1
    • test
    • None
    • Reviewed

    Description

      TestFileCreation#testLeaseExpireHardLimit uses DataNodeTestUtils#getFile() to open, read and verify blocks written on the DN. It’s better to use getBlockInputStream() which does exactly the same thing but hides the detail of getting the block file on disk.

      Attachments

        1. HDFS-9238.001.patch
          2 kB
          Tony Wu

        Activity

          People

            twu Tony Wu
            twu Tony Wu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: