-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: use gRPC Bidirectional Streaming for Mapper and Transformer #143
Conversation
Signed-off-by: Yashash H L <[email protected]>
import java.util.Optional; | ||
import java.util.concurrent.CompletableFuture; | ||
|
||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
CompletableFuture<Void> failureFuture = new CompletableFuture<>(); | ||
|
||
handleFailure(failureFuture); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we handle a failure future right after creating it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we handle failure using a separate thread.
|
||
try { | ||
responseObserver.done.get(); | ||
} catch (InterruptedException | ExecutionException e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: if there was no exception thrown, this unit test could pass. consider returning within the catch block and failing if reaching the end of the test.
@Override | ||
public SupervisorStrategy supervisorStrategy() { | ||
// we want to stop all child actors in case of any exception | ||
return new AllForOneStrategy( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is good. is it something we can also leverage for reduce stream/session?
Signed-off-by: Yashash H L <[email protected]>
Signed-off-by: Yashash H L <[email protected]>
Signed-off-by: Yashash H L <[email protected]>
LGTM! |
…maproj#143) Signed-off-by: Yashash H L <[email protected]>
No description provided.