Hadoop Common
  1. Hadoop Common
  2. HADOOP-8422

Deprecate FileSystem#getDefault* and getServerDefault methods that don't take a Path argument

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-alpha
    • Fix Version/s: 2.0.2-alpha
    • Component/s: fs
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The javadocs for FileSystem#getDefaultBlockSize and FileSystem#getDefaultReplication claim that "The given path will be used to locate the actual filesystem" however they both ignore the path.

      1. hadoop-8422.txt
        10 kB
        Eli Collins

        Issue Links

          Activity

          Eli Collins created issue -
          Eli Collins made changes -
          Field Original Value New Value
          Summary FileSystem#getDefaultBlockSize FileSystem#getDefaultBlockSize and Replication don't use the given path
          Affects Version/s 2.0.0 [ 12320352 ]
          Target Version/s 2.0.1 [ 12321441 ]
          Priority Major [ 3 ] Minor [ 4 ]
          Description The javadocs for FileSystem#getDefaultBlockSize and FileSystem#getDefaultReplication claim that "The given path will be used to locate the actual filesystem" however they both ignore the path.

          This means if you call these methods with viewfs you'll get a NotInMountpointException even though the given path may in fact refer to a fs with a default replication or block size. This prevents users like HBase from running using a client configured with viewfs, eg setting hbase.rootdir to viewfs://cluster1/hbase.
          Component/s fs [ 12310689 ]
          Eli Collins made changes -
          Description The javadocs for FileSystem#getDefaultBlockSize and FileSystem#getDefaultReplication claim that "The given path will be used to locate the actual filesystem" however they both ignore the path.

          This means if you call these methods with viewfs you'll get a NotInMountpointException even though the given path may in fact refer to a fs with a default replication or block size. This prevents users like HBase from running using a client configured with viewfs, eg setting hbase.rootdir to viewfs://cluster1/hbase.
          The javadocs for FileSystem#getDefaultBlockSize and FileSystem#getDefaultReplication claim that "The given path will be used to locate the actual filesystem" however they both ignore the path.
          Daryn Sharp made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Not A Problem [ 8 ]
          Eli Collins made changes -
          Link This issue is related to HBASE-6067 [ HBASE-6067 ]
          Daryn Sharp made changes -
          Resolution Not A Problem [ 8 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Daryn Sharp made changes -
          Affects Version/s 1.0.3 [ 12320248 ]
          Affects Version/s 2.0.0 [ 12320352 ]
          Target Version/s 2.0.1 [ 12321441 ] 1.0.3 [ 12320248 ]
          Eli Collins made changes -
          Link This issue relates to HADOOP-8014 [ HADOOP-8014 ]
          Eli Collins made changes -
          Assignee Eli Collins [ eli2 ]
          Eli Collins made changes -
          Summary FileSystem#getDefaultBlockSize and Replication don't use the given path Deprecate FileSystem#getDefault* and getServerDefault methods that don't take a Path argument
          Affects Version/s 2.0.0-alpha [ 12320352 ]
          Affects Version/s 1.0.3 [ 12320248 ]
          Target Version/s 1.0.3 [ 12320248 ] 2.0.1-alpha [ 12321441 ]
          Eli Collins made changes -
          Attachment hadoop-8422.txt [ 12528824 ]
          Eli Collins made changes -
          Status Reopened [ 4 ] Patch Available [ 10002 ]
          Eli Collins made changes -
          Link This issue relates to HADOOP-8430 [ HADOOP-8430 ]
          Eli Collins made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags Reviewed [ 10343 ]
          Target Version/s 2.0.1-alpha [ 12321441 ]
          Fix Version/s 2.0.1-alpha [ 12321441 ]
          Resolution Fixed [ 1 ]
          Eli Collins made changes -
          Assignee Eli Collins [ eli2 ] Eli Collins [ eli ]
          Arun C Murthy made changes -
          Fix Version/s 2.0.2-alpha [ 12322473 ]
          Fix Version/s 2.1.0-alpha [ 12321441 ]
          Arun C Murthy made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Mike Percy made changes -
          Link This issue is related to FLUME-2027 [ FLUME-2027 ]

            People

            • Assignee:
              Eli Collins
              Reporter:
              Eli Collins
            • Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development