java.io.EOFException: Unexpected EOF read on the socket
at org.apache.coyote.http11.Http11InputBuffer.fill(Http11InputBuffer.java:805)
at org.apache.coyote.http11.Http11InputBuffer.access(300(Http11InputBuffer.java:42)
at org.apache.coyote.http11.Http11InputBuffer)SocketInputBuffer.doRead(Http11InputBuffer.java:1150)
at org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:102)
线上20万数据,未加索引,且数据库Varchar,sql传入Long,导致查询时候强转,走全表扫描。以订正。以后大家都注意下这种强转情况。
涉及到数据类型转换,不管有没有索引都会走全表扫面,索引失效。导致连接超时,EOF