Dongqing Hu
Dongqing Hu
Exia has been greatly refactored and is now 2.0 version. User manual will come later.
Java 8 is supported now! But it's not fully tested because I don't have a 2 million LOC codebase in Java 8 :)
Hi DataDog team, I am investigating a similar issue in Rails application. It is important to distinguish connection waiting time from query execution time. Do you have any discovery on...
Servlet那本书太老了都绝版了,建议换成这本, concise and up-to-date http://product.china-pub.com/3800306
Previously, a task was cancelled using `TimeoutTask#invalidate()` ```java /** null thread means the task is invalid and will do nothing */ private final AtomicReference threadReference = new AtomicReference(); ...... threadReference.set(null);...
@sanjaypujare thank you. 1. I think cancellationListener and `ServerCall.close()` can only close the stream and cannot stop the application's RPC method execution. 2. My approach simply interrupts the RPC method...
Sorry too busy these days. @sanjaypujare I need a way to capture the application's execution thread so I can interrupt it. 1. I should check if cancellationListener is run in...
It is difficult to test threading behavior in unit tests. So I have created a project https://github.com/sorra/grpc-timeout (you can run `Server.java` and `Client.java`) to test my approach and the alternative...
Thank you. This is my updated approach using CancellableContext and CancellationListener: ```java try (Context.CancellableContext context = Context.current() .withDeadline(Deadline.after(timeout, unit), scheduler)) { Thread thread = Thread.currentThread(); Context.CancellationListener cancelled = c ->...
Yesterday it worked in production 👏🏻 ``` 2023-08-09 05:19:16.467+0000 WARN 280 --- [pool-16-thread-1] ServerTimeoutManager.accept : Interrupted RPC thread pool-19-thread-13 for timeout at 60 SECONDS ```