Conversation
Signed-off-by: Yashash H L <yashashhl25@gmail.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #160 +/- ##
=======================================
Coverage ? 57.90%
Complexity ? 390
=======================================
Files ? 129
Lines ? 2910
Branches ? 181
=======================================
Hits ? 1685
Misses ? 1108
Partials ? 117 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Yashash H L <yashashhl25@gmail.com>
Signed-off-by: Yashash H L <yashashhl25@gmail.com>
|
|
||
| private void handleFailure(Exception e) { | ||
| getContext().getSystem().log().error("Encountered error in mapStreamFn", e); | ||
| if (userException == null) { |
There was a problem hiding this comment.
handleFailure will only be invoked when there is an exception in the code.
There was a problem hiding this comment.
Yes, but I don't think we shouldn't assume caller behaviour when we implement a method.
src/main/java/io/numaproj/numaflow/mapstreamer/MapStreamSupervisorActor.java
Outdated
Show resolved
Hide resolved
src/main/java/io/numaproj/numaflow/mapstreamer/MapStreamSupervisorActor.java
Outdated
Show resolved
Hide resolved
src/main/java/io/numaproj/numaflow/mapstreamer/MapStreamSupervisorActor.java
Outdated
Show resolved
Hide resolved
src/test/java/io/numaproj/numaflow/mapstreamer/ServerErrTest.java
Outdated
Show resolved
Hide resolved
src/test/java/io/numaproj/numaflow/mapstreamer/ServerErrTest.java
Outdated
Show resolved
Hide resolved
| String[] keys = mapRequest.getRequest().getKeysList().toArray(new String[0]); | ||
|
|
||
| try { | ||
| OutputObserverImpl outputObserver = new OutputObserverImpl( |
There was a problem hiding this comment.
| OutputObserverImpl outputObserver = new OutputObserverImpl( | |
| OutputObserver outputObserver = new OutputObserverImpl( |
We can move sendEOF() to MapStreamerActor.
There was a problem hiding this comment.
MapStreamerActor won't have that context, I prefer to do it here because the processMessage is a blocking call and immediately after the processing is done we are sending EOF. I don't anything wrong here.
There was a problem hiding this comment.
won't have that context.
Do you mean requestId and supervisor actor ref? if so, I think MapStreamerActor has the context of both.
I was proposing that ObserverImpl only implements methods the interface defines but I am also ok with having an extra sendEOF.
Signed-off-by: Yashash H L <yashashhl25@gmail.com>
Signed-off-by: Keran Yang <yangkr920208@gmail.com>
No description provided.