Skip to content
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

chore: formalize gRPC errors in case of UDF exceptions #166

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

adarsh0728
Copy link

@adarsh0728 adarsh0728 commented Feb 5, 2025

fixes: #165

Copy link

codecov bot commented Feb 5, 2025

Codecov Report

Attention: Patch coverage is 73.43750% with 17 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@1921c4e). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...ain/java/io/numaproj/numaflow/sourcer/Service.java 33.33% 8 Missing ⚠️
...main/java/io/numaproj/numaflow/sinker/Service.java 75.00% 1 Missing and 1 partial ⚠️
...java/io/numaproj/numaflow/batchmapper/Service.java 87.50% 0 Missing and 1 partial ⚠️
...o/numaproj/numaflow/mapper/MapSupervisorActor.java 87.50% 0 Missing and 1 partial ⚠️
...java/io/numaproj/numaflow/mapstreamer/Service.java 87.50% 0 Missing and 1 partial ⚠️
...va/io/numaproj/numaflow/shared/ExceptionUtils.java 83.33% 1 Missing ⚠️
...in/java/io/numaproj/numaflow/sideinput/Server.java 50.00% 0 Missing and 1 partial ⚠️
...n/java/io/numaproj/numaflow/sideinput/Service.java 66.66% 0 Missing and 1 partial ⚠️
...ow/sourcetransformer/TransformSupervisorActor.java 88.88% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #166   +/-   ##
=======================================
  Coverage        ?   58.76%           
  Complexity      ?      386           
=======================================
  Files           ?      128           
  Lines           ?     2874           
  Branches        ?      185           
=======================================
  Hits            ?     1689           
  Misses          ?     1064           
  Partials        ?      121           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@adarsh0728 adarsh0728 marked this pull request as ready for review February 9, 2025 15:09
@adarsh0728 adarsh0728 requested a review from yhl25 February 9, 2025 15:09
Copy link
Member

@KeranYang KeranYang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving with minor comments.

public static final String ERR_SINK_EXCEPTION = "UDF_EXECUTION_ERROR(sink)";
public static final String ERR_MAP_STREAM_EXCEPTION = "UDF_EXECUTION_ERROR(mapstream)";
public static final String ERR_MAP_EXCEPTION = "UDF_EXECUTION_ERROR(map)";
public static final String ERR_BATCH_MAP_EXCEPTION = "UDF_EXECUTION_ERROR(batchmap)";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we skipping reducers?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, for now (to be taken up later across sdk's) numaproj/numaflow-go#173 (comment)

@@ -96,7 +99,8 @@ public void awaitTermination() throws InterruptedException {
}

/**
* Stop serving requests and shutdown resources. Await termination on the main thread since the
* Stop serving requests and shutdown resources. Await termination on the main
* thread since the
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the reformatting right? it seems we are getting more lines but short.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to check why this was happening, reverted at most of the places.

import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertEquals;

public class ExceptionUtilsTest {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add common prefix and formalize error messages
2 participants