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

RpcProgramNfs3 : wrong parsing of dfs.blocksize

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.6.0, 2.5.2
    • Fix Version/s: 2.7.0
    • Component/s: nfs
    • Labels:
    • Environment:

      any : windows, linux, etc.

    • Target Version/s:
    • Hadoop Flags:
      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

            • Assignee:
              rcatherinot Remi Catherinot
              Reporter:
              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