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

Hmaster crashes caused by splitting log.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.90.3
    • 0.90.4
    • master
    • None
    • Reviewed

    Description

      In my performance cluster(0.90.3), The Hmaster memory from 100 M up to 4G when one region server crashed.
      I added some print in function doneWriting and found the values of totalBuffered is negative.

      10:29:52,119 WARN org.apache.hadoop.hbase.regionserver.wal.HLogSplitter: gjc:release Used -565832
      hbase-root-master-157-5-111-21.log:2011-06-24 10:29:52,119 WARN org.apache.hadoop.hbase.regionserver.wal.HLogSplitter: gjc:release Used -565832release size25168

      void doneWriting(RegionEntryBuffer buffer) {
      synchronized (this)

      { LOG.warn("gjc1: relase currentlyWriting +biggestBufferKey " + buffer.encodedRegionName ); boolean removed = currentlyWriting.remove(buffer.encodedRegionName); assert removed; }

      long size = buffer.heapSize();

      synchronized (dataAvailable)

      { totalBuffered -= size; LOG.warn("gjc:release Used " + totalBuffered ); // We may unblock writers dataAvailable.notifyAll(); }

      LOG.warn("gjc:release Used " + totalBuffered + "release size"+ size);
      }

      Attachments

        1. Verifiedresult.png
          250 kB
          gaojinchao
        2. Screenshot-2.png
          66 kB
          gaojinchao
        3. hbase-root-master-157-5-100-8.rar
          29 kB
          gaojinchao
        4. HBASE-4028-0.90V2
          1 kB
          gaojinchao

        Activity

          People

            sunnygao gaojinchao
            sunnygao gaojinchao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: