[ https://issues.apache.org/jira/browse/KUDU-2236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16312046#comment-16312046 ]
Todd Lipcon commented on KUDU-2236: ----------------------------------- [~anjuwong] it looks like you committed some fixes for this in December. I'm looking over the fixes, though, and not sure they are correct. The original intention of the 'wait' in the test was not to try to avoid the exceptions being logged, but rather to ensure that no exceptions were logged _even 500ms after closing_. It seems like the patch changes the intention of the test to now allow exceptions to be logged when closing the client, and we don't want that to be the case. I think we need to look again at this and understand why the test was flaky, and check whether it was a regression or just an incomplete bug fix in the first case. > org.apache.kudu.client.TestKuduClient flaky > ------------------------------------------- > > Key: KUDU-2236 > URL: https://issues.apache.org/jira/browse/KUDU-2236 > Project: Kudu > Issue Type: Bug > Components: test > Affects Versions: 1.6.0 > Reporter: Edward Fancher > Assignee: Andrew Wong > > Last seen in org.apache.kudu.client.TestKuduClient.testCloseShortlyAfterOpen > DEBUG - Could not login via JAAS. Using no credentials: Unable to obtain > Principal Name for authentication > DEBUG - SASL mechanism PLAIN chosen for peer 127.63.177.1 > DEBUG - SASL mechanism PLAIN chosen for peer 127.63.177.1 > DEBUG - SASL mechanism PLAIN chosen for peer 127.63.177.1 > DEBUG - Learned about tablet Kudu Master for table 'Kudu Master' with > partition [<start>, <end>) > DEBUG - Releasing all remaining resources > DEBUG - [peer master-127.63.177.1:64030] cleaning up while in state READY due > to: connection disconnected > INFO - W1206 07:14:39.727399 16334 connection.cc:511] server connection from > 127.63.177.1:43497 recv error: Network error: recv error: Connection reset by > peer (error 104) > DEBUG - [peer master-127.63.177.1:64034] cleaning up while in state > NEGOTIATING due to: connection disconnected > WARN - Error receiving response from 127.63.177.1:64030 > org.apache.kudu.client.RecoverableException: connection disconnected > at org.apache.kudu.client.Connection.channelDisconnected(Connection.java:244) > at > org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:102) > at org.apache.kudu.client.Connection.handleUpstream(Connection.java:236) > at > org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) > at > org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) > at > org.jboss.netty.channel.SimpleChannelUpstreamHandler.channelDisconnected(SimpleChannelUpstreamHandler.java:208) > at > org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:102) > at > org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) > at > org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) > at > org.jboss.netty.handler.codec.oneone.OneToOneDecoder.handleUpstream(OneToOneDecoder.java:60) > at > org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) > at > org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) > at > org.jboss.netty.handler.codec.frame.FrameDecoder.cleanup(FrameDecoder.java:493) > at > org.jboss.netty.handler.codec.frame.FrameDecoder.channelDisconnected(FrameDecoder.java:365) > at > org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:102) > at > org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) > at > org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) > at > org.jboss.netty.channel.Channels.fireChannelDisconnected(Channels.java:396) > at org.jboss.netty.channel.Channels$4.run(Channels.java:386) > at > org.jboss.netty.channel.socket.ChannelRunnableWrapper.run(ChannelRunnableWrapper.java:40) > at > org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:391) > at > org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:315) > at > org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) > at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) > at > org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) > at > org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > INFO - W1206 07:14:39.741600 17527 negotiation.cc:311] Failed RPC > negotiation. Trace: > INFO - 1206 07:14:39.695892 (+ 0us) reactor.cc:499] Submitting > negotiation task for server connection from 127.63.177.1:48551 > INFO - 1206 07:14:39.722215 (+ 26323us) server_negotiation.cc:173] Beginning > negotiation > INFO - 1206 07:14:39.722236 (+ 21us) server_negotiation.cc:361] Waiting > for connection header > DEBUG - [peer master-127.63.177.1:64032] cleaning up while in state READY due > to: connection disconnected > WARN - Error receiving response from 127.63.177.1:64034 > org.apache.kudu.client.RecoverableException: connection disconnected > at org.apache.kudu.client.Connection.channelDisconnected(Connection.java:244) > at > org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:102) > at org.apache.kudu.client.Connection.handleUpstream(Connection.java:236) > at > org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) > at > org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) > at > org.jboss.netty.channel.SimpleChannelUpstreamHandler.channelDisconnected(SimpleChannelUpstreamHandler.java:208) > at > org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:102) > at > org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) > at > org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) > at > org.jboss.netty.channel.SimpleChannelUpstreamHandler.channelDisconnected(SimpleChannelUpstreamHandler.java:208) > at > org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:102) > at > org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) > at > org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) > at > org.jboss.netty.handler.codec.oneone.OneToOneDecoder.handleUpstream(OneToOneDecoder.java:60) > at > org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) > at > org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) > at > org.jboss.netty.handler.codec.frame.FrameDecoder.cleanup(FrameDecoder.java:493) > at > org.jboss.netty.handler.codec.frame.FrameDecoder.channelDisconnected(FrameDecoder.java:365) > at > org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:102) > at > org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) > at > org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) > at > org.jboss.netty.channel.Channels.fireChannelDisconnected(Channels.java:396) > at org.jboss.netty.channel.Channels$4.run(Channels.java:386) > at > org.jboss.netty.channel.socket.ChannelRunnableWrapper.run(ChannelRunnableWrapper.java:40) > at > org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:391) > at > org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:315) > at > org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) > at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) > at > org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) > at > org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > INFO - 1206 07:14:39.722274 (+ 38us) server_negotiation.cc:369] Connection > header received > INFO - 1206 07:14:39.722401 (+ 127us) server_negotiation.cc:325] Received > NEGOTIATE NegotiatePB request > INFO - 1206 07:14:39.722424 (+ 23us) server_negotiation.cc:410] Received > NEGOTIATE request from client > INFO - 1206 07:14:39.722534 (+ 110us) server_negotiation.cc:337] Sending > NEGOTIATE NegotiatePB response > INFO - 1206 07:14:39.722662 (+ 128us) server_negotiation.cc:194] Negotiated > authn=SASL > INFO - 1206 07:14:39.724372 (+ 1710us) server_negotiation.cc:325] Received > TLS_HANDSHAKE NegotiatePB request > INFO - 1206 07:14:39.724946 (+ 574us) server_negotiation.cc:337] Sending > TLS_HANDSHAKE NegotiatePB response > INFO - 1206 07:14:39.730617 (+ 5671us) server_negotiation.cc:325] Received > TLS_HANDSHAKE NegotiatePB request > INFO - 1206 07:14:39.736652 (+ 6035us) server_negotiation.cc:337] Sending > TLS_HANDSHAKE NegotiatePB response > INFO - 1206 07:14:39.737144 (+ 492us) negotiation.cc:302] Negotiation > complete: Network error: Server connection negotiation failed: server > connection from 127.63.177.1:48551: BlockingWrite error: write error: Broken > pipe (error 32) > INFO - Metrics: > {"server-negotiator.queue_time_us":26096,"thread_start_us":25983,"threads_started":1} -- This message was sent by Atlassian JIRA (v6.4.14#64029)