[ https://issues.apache.org/jira/browse/HDFS-13039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16334531#comment-16334531 ]
Jason Lowe commented on HDFS-13039: ----------------------------------- Note that branch-3 should not be a target of commits per the discussion in common-dev. It was created by mistake and has since been deleted. > StripedBlockReader#createBlockReader leaks socket on IOException > ---------------------------------------------------------------- > > Key: HDFS-13039 > URL: https://issues.apache.org/jira/browse/HDFS-13039 > Project: Hadoop HDFS > Issue Type: Bug > Components: datanode, erasure-coding > Affects Versions: 3.0.0 > Reporter: Lei (Eddy) Xu > Assignee: Lei (Eddy) Xu > Priority: Critical > Fix For: 3.1.0, 3.0.1 > > Attachments: HDFS-13039.00.patch, HDFS-13039.01.patch > > > When running EC on one cluster, DataNode has millions of {{CLOSE_WAIT}} > connections > {code:java} > $ grep CLOSE_WAIT lsof.out | wc -l > 10358700 > // All CLOSW_WAITs belong to the same DataNode process (pid=88527) > $ grep CLOSE_WAIT lsof.out | awk '{print $2}' | sort | uniq > 88527 > {code} > And DN can not open any file / socket, as shown in the log: > {noformat} > 2018-01-19 06:47:09,424 WARN io.netty.channel.DefaultChannelPipeline: An > exceptionCaught() event was fired, and it reached at the tail of the > pipeline. It usually means the last handler in the pipeline did not handle > the exception. > java.io.IOException: Too many open files > at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method) > at > sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:422) > at > sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:250) > at > io.netty.channel.socket.nio.NioServerSocketChannel.doReadMessages(NioServerSocketChannel.java:135) > at > io.netty.channel.nio.AbstractNioMessageChannel$NioMessageUnsafe.read(AbstractNioMessageChannel.java:75) > at > io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:563) > at > io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:504) > at > io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:418) > at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:390) > at > io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:742) > at > io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:145) > at java.lang.Thread.run(Thread.java:748) > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org