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

when splitting hlog,occurred exception

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 1.3.1, 2.1.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      if hlog contains too many regions,when hlog splits, WALSplitter will open a discovered.edits(FSDataOutputStream) for each region,

      WALSplitter.java
      protected Map<byte[], SinkWriter> writers = Collections
              .synchronizedMap(new TreeMap<byte[], SinkWriter>(Bytes.BYTES_COMPARATOR));
      

      but datanode has a limit (dfs.datanode.max.transfer.threads), which will cause splithlog to be very slow,even failed.

      solution:add an max openEdits value(a configuration), when openEdits exceeds this value, the oldest FSDataOutputStream will be closed

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Bo Cui Bo Cui
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: