title: Apache Hbase Region cleint disconnection in opentsdb for grafana reporting
body: <p>in opentsdb i am getting following errors. it seems Hbase Region client is getting disconnected while reading and writing.</p>
  <p>I have already tried configuring following settings to maximum time</p>
  <pre><code>hbase.rpc.timeout 
  hbase_client_operation_timeout
  hbase.client.scanner.timeout.period
  hbase.lease.recovery.timeout 
  hbase.ipc.client.socket.timeout
  </code></pre>
  <p>still the connection is getting disconnected.</p>
  <p>can some one suggest me which configuration would be good.? so that Region doesnt get disconnected and opentsdb picks all data and gafan can diplay the metrics.</p>
  <p>thank you very much.</p>
  <pre><code>09:27:18.755 ERROR [RegionClient.exceptionCaught] - Unexpected exception from downstream on [id: 0x5cd649fd, /10.104.149.136:51756 =&gt; /10.104.149.152:16020]
  java.io.IOException: Connection reset by peer
          at sun.nio.ch.FileDispatcherImpl.write0(Native Method) ~[na:1.8.0_312]
          at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47) ~[na:1.8.0_312]
          at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93) ~[na:1.8.0_312]
          at sun.nio.ch.IOUtil.write(IOUtil.java:51) ~[na:1.8.0_312]
          at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:470) ~[na:1.8.0_312]
          at org.jboss.netty.channel.socket.nio.SocketSendBufferPool$UnpooledSendBuffer.transferTo(SocketSendBufferPool.java:203) ~[netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.socket.nio.AbstractNioWorker.write0(AbstractNioWorker.java:201) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.socket.nio.AbstractNioWorker.writeFromTaskLoop(AbstractNioWorker.java:151) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.socket.nio.AbstractNioChannel$WriteTask.run(AbstractNioChannel.java:292) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:391) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:315) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) [netty-3.10.6.Final.jar:na]
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_312]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_312]
          at java.lang.Thread.run(Thread.java:748) [na:1.8.0_312]
  09:27:18.756 INFO  [HBaseClient.handleDisconnect] - Channel [id: 0x5cd649fd, /10.104.149.136:51756 =&gt; /10.104.149.152:16020] is disconnecting: [id: 0x5cd649fd, /10.104.149.136:51756 =&gt; /10.104.149.152:16020] CLOSE
  09:27:18.756 INFO  [HBaseClient.removeClientFromCache] - Lost connection with the .META. region
  09:27:18.756 INFO  [HBaseClient.invalidateRegionCache] - Invalidated cache for .META. as null seems to be splitting or closing it.
  09:27:18.764 ERROR [RegionClient.exceptionCaught] - Unexpected exception from downstream on [id: 0x5cd649fd, /10.104.149.136:51756 :&gt; /10.104.149.152:16020]
  java.nio.channels.ClosedChannelException: null
          at org.jboss.netty.channel.socket.nio.AbstractNioWorker.cleanUpWriteBuffer(AbstractNioWorker.java:433) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.socket.nio.AbstractNioWorker.close(AbstractNioWorker.java:373) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink.eventSunk(NioClientSocketPipelineSink.java:58) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendDownstream(DefaultChannelPipeline.java:779) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.SimpleChannelHandler.closeRequested(SimpleChannelHandler.java:334) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.SimpleChannelHandler.handleDownstream(SimpleChannelHandler.java:260) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:582) [netty-3.10.6.Final.jar:na]
          at org.hbase.async.HBaseClient$RegionClientPipeline.sendDownstream(HBaseClient.java:3847) [asynchbase-1.8.2.jar:na]
          at org.jboss.netty.channel.Channels.close(Channels.java:812) [netty-3.10.6.Final.jar:na]
          at org.hbase.async.RegionClient.exceptionCaught(RegionClient.java:1246) [asynchbase-1.8.2.jar:na]
          at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:112) [netty-3.10.6.Final.jar:na]
          at org.hbase.async.RegionClient.handleUpstream(RegionClient.java:1230) [asynchbase-1.8.2.jar:na]
          at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.SimpleChannelHandler.exceptionCaught(SimpleChannelHandler.java:156) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:130) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.handler.timeout.IdleStateAwareChannelHandler.handleUpstream(IdleStateAwareChannelHandler.java:36) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.SimpleChannelUpstreamHandler.exceptionCaught(SimpleChannelUpstreamHandler.java:153) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:112) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) [netty-3.10.6.Final.jar:na]
          at org.hbase.async.HBaseClient$RegionClientPipeline.sendUpstream(HBaseClient.java:3857) [asynchbase-1.8.2.jar:na]
          at org.jboss.netty.channel.Channels.fireExceptionCaught(Channels.java:525) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.socket.nio.AbstractNioWorker.write0(AbstractNioWorker.java:291) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.socket.nio.AbstractNioWorker.writeFromTaskLoop(AbstractNioWorker.java:151) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.socket.nio.AbstractNioChannel$WriteTask.run(AbstractNioChannel.java:292) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:391) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:315) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) [netty-3.10.6.Final.jar:na]
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_312]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_312]
          at java.lang.Thread.run(Thread.java:748) [na:1.8.0_312]
  09:27:18.765 ERROR [RegionClient.exceptionCaught] - Unexpected exception from downstream on [id: 0x5cd649fd, /10.104.149.136:51756 :&gt; /10.104.149.152:16020]
  java.io.IOException: Broken pipe
          at sun.nio.ch.FileDispatcherImpl.write0(Native Method) ~[na:1.8.0_312]
          at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47) ~[na:1.8.0_312]
          at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93) ~[na:1.8.0_312]
          at sun.nio.ch.IOUtil.write(IOUtil.java:51) ~[na:1.8.0_312]
          at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:470) ~[na:1.8.0_312]
          at org.jboss.netty.channel.socket.nio.SocketSendBufferPool$UnpooledSendBuffer.transferTo(SocketSendBufferPool.java:203) ~[netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.socket.nio.AbstractNioWorker.write0(AbstractNioWorker.java:201) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.socket.nio.AbstractNioWorker.writeFromTaskLoop(AbstractNioWorker.java:151) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.socket.nio.AbstractNioChannel$WriteTask.run(AbstractNioChannel.java:292) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:391) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:315) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) [netty-3.10.6.Final.jar:na]
          at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) [netty-3.10.6.Final.jar:na]
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_312]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_312]
          at java.lang.Thread.run(Thread.java:748) [na:1.8.0_312]
  </code></pre>