Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-6200 Create a separate jar for hdfs-client
  3. HDFS-9304

Add HdfsClientConfigKeys class to TestHdfsConfigFields#configurationClasses

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha1
    • build
    • None
    • Reviewed

    Description

      tl;dr Since HdfsClientConfigKeys holds client side config keys, we need to add this class to TestHdfsConfigFields#configurationClasses.

      Now the TestHdfsConfigFields unit test passes because DFSConfigKeys still contains all the client side config keys, though marked @deprecated. As we add new client config keys (e.g. HDFS-9259), the unit test will fail with the following error:

      hdfs-default.xml has 1 properties missing in class org.apache.hadoop.hdfs.DFSConfigKeys

      If the logic is to make the DFSConfigKeys and HdfsClientConfigKeys together cover all config keys in hdfs-default.xml, we need to put both of them in TestHdfsConfigFields#configurationClasses.

      Attachments

        1. HDFS-9304.000.patch
          1 kB
          Mingliang Liu

        Activity

          People

            liuml07 Mingliang Liu
            liuml07 Mingliang Liu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: