Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Invalid
-
None
-
None
-
None
Description
Description
In the implementation of asynchronous Ipc.client, the main methods used include HADOOP-13226, HDFS-10224, etc.
However, the existing implementation does not support `CompletableFuture`; instead, it relies on setting up callbacks, which can lead to the "callback hell" problem. Using `CompletableFuture` can better organize asynchronous callbacks. Therefore, on the basis of the existing implementation, by using `CompletableFuture`, once the `client.call` is completed, the asynchronous thread handles the response of this call without blocking the main thread.
Test
new UT TestAsyncIPC#testAsyncCallWithCompletableFuture()
Attachments
Attachments
Issue Links
- is cloned by
-
HADOOP-19235 IPC client uses CompletableFuture to support asynchronous operations.
- Resolved
- links to