You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Bo Cui (JIRA)" <ji...@apache.org> on 2019/01/21 10:21:00 UTC

[jira] [Resolved] (HBASE-21651) when splitting hlog,occurred exception

     [ https://issues.apache.org/jira/browse/HBASE-21651?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bo Cui resolved HBASE-21651.
----------------------------
    Resolution: Fixed

> when splitting hlog,occurred exception 
> ---------------------------------------
>
>                 Key: HBASE-21651
>                 URL: https://issues.apache.org/jira/browse/HBASE-21651
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 1.3.1, 2.1.0
>            Reporter: Bo Cui
>            Priority: Critical
>
> if hlog contains too many regions,when hlog splits, WALSplitter will open a discovered.edits(FSDataOutputStream) for each region, 
> {code:title=WALSplitter.java|borderStyle=solid}
> protected Map<byte[], SinkWriter> writers = Collections
>         .synchronizedMap(new TreeMap<byte[], SinkWriter>(Bytes.BYTES_COMPARATOR));
> {code}
> 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



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)