java.lang.IllegalStateException: block()/blockFirst()/blockLast() are blocking

  • 错误日志:
	reactor.core.Exceptions$BubblingException: java.lang.IllegalStateException: block()/blockFirst()/blockLast() are blocking, which is not supported in thread reactor-http-epoll-4
	at reactor.core.Exceptions.bubble(Exceptions.java:170)
	at reactor.core.publisher.Operators.onErrorDropped(Operators.java:521)
	at reactor.core.publisher.FluxDoFinally$DoFinallySubscriber.runFinally(FluxDoFinally.java:159)
	at reactor.core.publisher.FluxDoFinally$DoFinallySubscriber.cancel(FluxDoFinally.java:145)
	at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.drainLoop(Operators.java:2051)
...
  • 分析

由于请求主动断开,导致netty无法获取channel处理,抛出异常,nginx状态显示为499。

  • 处理方案

logback过滤部分日志输出

netty源码修改

 

 

你可能感兴趣的:(日常错误,SpringCloud,Netty,java,spring,netty,exception)