[#1456] improvement(client): Better exception handling when calling requireBuffer using GRPC by rickyma · Pull Request #1457 · apache/uniffle · GitHub
Skip to content

[#1456] improvement(client): Better exception handling when calling requireBuffer using GRPC#1457

Merged
xianjingfeng merged 1 commit into
apache:masterfrom
rickyma:issue-1456
Jan 18, 2024
Merged

[#1456] improvement(client): Better exception handling when calling requireBuffer using GRPC#1457
xianjingfeng merged 1 commit into
apache:masterfrom
rickyma:issue-1456

Conversation

@rickyma

@rickyma rickyma commented Jan 15, 2024

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

1、Refactor the method ShuffleServerGrpcClient.requirePreAllocation, calling getBlockingStub().requireBuffer only once.
2、Try-catch getBlockingStub().requireBuffer's exception, log the error, and return FAILED_REQUIRE_ID.
3、Refactor the log to make it more appropriate.

Why are the changes needed?

For #1456

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Existing UTs.

@rickyma

rickyma commented Jan 15, 2024

Copy link
Copy Markdown
Contributor Author

@zuston zuston requested a review from xianjingfeng January 16, 2024 09:42
@codecov-commenter

codecov-commenter commented Jan 17, 2024

Copy link
Copy Markdown

Codecov Report

Attention: 18 lines in your changes are missing coverage. Please review.

Comparison is base (3180501) 54.19% compared to head (ef84ef9) 55.12%.
Report is 3 commits behind head on master.

Files Patch % Lines
...ffle/client/impl/grpc/ShuffleServerGrpcClient.java 0.00% 18 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1457      +/-   ##
============================================
+ Coverage     54.19%   55.12%   +0.92%     
+ Complexity     2775     2773       -2     
============================================
  Files           423      403      -20     
  Lines         24185    21854    -2331     
  Branches       2058     2062       +4     
============================================
- Hits          13108    12047    -1061     
+ Misses        10266     9065    -1201     
+ Partials        811      742      -69     

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

@rickyma

rickyma commented Jan 17, 2024

Copy link
Copy Markdown
Contributor Author

@xianjingfeng xianjingfeng left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@xianjingfeng xianjingfeng merged commit f4cda5b into apache:master Jan 18, 2024
@rickyma rickyma deleted the issue-1456 branch May 5, 2024 08:34
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.

3 participants