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

[ISSUE #7115] Fix the response message NPE #7116

Merged
merged 2 commits into from
Aug 10, 2023
Merged

[ISSUE #7115] Fix the response message NPE #7116

merged 2 commits into from
Aug 10, 2023

Conversation

dingshuangxi888
Copy link
Contributor

Which Issue(s) This PR Fixes

Fixes #7115

Brief Description

When a system exception occurs in gRPC, such as a NullPointerException (NPE), the Response returned to the client may have its message set to null, resulting in another NPE. In such cases, the client cannot receive the response.

How Did You Test This Change?

Copy link
Contributor

@drpmma drpmma left a comment

Choose a reason for hiding this comment

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

LGTM

@lizhimins lizhimins changed the title [ISSUE #]Fix the response message NPE. [ISSUE #7115] Fix the response message NPE. Aug 9, 2023
@lizhimins lizhimins changed the title [ISSUE #7115] Fix the response message NPE. [ISSUE #7115] Fix the response message NPE Aug 9, 2023
@RongtongJin
Copy link
Contributor

RongtongJin commented Aug 10, 2023

@dingshuangxi888 Plz merge the latest development branch to pass ci

@codecov-commenter
Copy link

Codecov Report

Merging #7116 (46ae05b) into develop (04683ec) will increase coverage by 0.00%.
Report is 1 commits behind head on develop.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             develop    #7116   +/-   ##
==========================================
  Coverage      42.13%   42.14%           
+ Complexity      9258     9257    -1     
==========================================
  Files           1149     1149           
  Lines          82000    82000           
  Branches       10694    10695    +1     
==========================================
+ Hits           34550    34558    +8     
+ Misses         43100    43091    -9     
- Partials        4350     4351    +1     
Files Changed Coverage Δ
...rocketmq/proxy/grpc/v2/common/ResponseBuilder.java 67.39% <100.00%> (-2.18%) ⬇️

... and 16 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@lizhimins lizhimins merged commit 99b39a3 into apache:develop Aug 10, 2023
17 of 19 checks passed
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.

[Bug] Fix gRPC response message NPE
8 participants