Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-5574

DEFAULT_MAX_FILE_SIZE defaults to a negative value

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.94.0
    • Fix Version/s: 0.94.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      HBASE-4365 changed the value of DEFAULT_MAX_FILE_SIZE from 256MB to 10G. Here is the line of code:

      public static final long DEFAULT_MAX_FILE_SIZE = 10 * 1024 * 1024 * 1024;

      The problem is that java evaluates the constant as an int which wraps and gets assigned to a long. I verified this with a test. The quick fix is to change the end to 1024L;

        Attachments

        1. HBASE-5574.patch
          0.6 kB
          Michael Drzal

          Activity

            People

            • Assignee:
              mdrzal Michael Drzal
              Reporter:
              mdrzal Michael Drzal
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: