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

RpcProgramNfs3 : wrong parsing of dfs.blocksize

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.6.0, 2.5.2
    • 2.7.0
    • nfs
    • any : windows, linux, etc.

    • Reviewed

    Description

      org/apache/hadoop/hdfs/nfs/nfs3/RpcProgramNfs3.java use Configuration.getLong to get the dfs.blocksize value, but it should use getLongBytes so it can handle syntax like 64m rather than pure numeric values. DataNode code & others all use getLongBytes.

      it's line 187 in source code.

      detected on version 2.5.2, checked version 2.6.0 which still has the bug.

      Attachments

        1. HDFS-8001.patch
          1.0 kB
          Remi Catherinot

        Activity

          People

            rcatherinot Remi Catherinot
            rcatherinot Remi Catherinot
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified