java.lang.IllegalStateException: Channel closed too early
at kafka.network.SocketServerTest.$anonfun$verifyRemoteCloseWithBufferedReceives$5(SocketServerTest.scala:1515)
at scala.Option.getOrElse(Option.scala:189)
at kafka.network.SocketServerTest.$anonfun$verifyRemoteCloseWithBufferedReceives$1(SocketServerTest.scala:1515)
at kafka.network.SocketServerTest.verifyRemoteCloseWithBufferedReceives(SocketServerTest.scala:1486)
at kafka.network.SocketServerTest.remoteCloseWithIncompleteBufferedReceive(SocketServerTest.scala:1407)