grpc-java/servlet
ZHANG Dapeng 85e656c0dc
Fix AsyncServletOutputStreamWriterConcurrencyTest flakiness (#9948)
The commit 792946132c (diff-cc7b2eb82d208e027f432435bcd324a46713c31096352f437417b770752f92abR197) makes it possible that the sleep can naturally wake up while `writeState` gets changes at the same time, causing a data race in the value of `parkingThread` between

792946132c/servlet/src/main/java/io/grpc/servlet/AsyncServletOutputStreamWriter.java (L199)

and 

792946132c/servlet/src/main/java/io/grpc/servlet/AsyncServletOutputStreamWriter.java (L218)

, in extreme scenario such as the CPU is stressed.

Fixes #9917
2023-03-24 11:20:38 -07:00
..
jakarta servlet: Implement gRPC server as a Servlet (#8596) 2023-01-20 13:17:58 -08:00
src Fix AsyncServletOutputStreamWriterConcurrencyTest flakiness (#9948) 2023-03-24 11:20:38 -07:00
build.gradle servlet: Implement gRPC server as a Servlet (#8596) 2023-01-20 13:17:58 -08:00