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

Add fetchReplica() to FsDatasetTestUtils to return FsDataset-agnostic Replica.

    XMLWordPrintableJSON

Details

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

    Description

      FsDatasetTestUtils() abstracts away the details in FsDataset to allow writing generic tests regardless of underlying FsDataset implementations. We can add a fetchReplica() method to allow some HDFS tests to avoid using FsDatasetTestUtil#fetchReplicaInfo(), which assumes FsDatasetImpl is the only implementation of FsDataset.

      Attachments

        1. HDFS-9363.001.patch
          5 kB
          Tony Wu

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: