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

maxHeapUsage value not read properly from config during EntryBuffers initialization

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3.1, 2.1.0
    • Fix Version/s: 3.0.0, 2.2.0, 2.1.3, 2.0.5
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

       

      WALSplitter.java
      entryBuffers = new EntryBuffers(controller,
       this.conf.getInt("hbase.regionserver.hlog.splitlog.buffersize", 128 * 1024 * 1024),
       splitWriterCreationBounded);
      
      

      In above case, EntryBuffers can't support maxHeapUsage in GB size.

      The parameter type of the new EntryBuffers() is long, but the conf max value is INT.MAX. 

      this is wrong?it should be getLong?

        Attachments

        1. HBASE-21639.001.patch
          2 kB
          Pankaj Kumar

          Activity

            People

            • Assignee:
              pankaj2461 Pankaj Kumar
              Reporter:
              Bo Cui Bo Cui
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: