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

[Fix][Master] Fix Potential danger in the event of a worker failover #15689

Merged
merged 15 commits into from
Mar 11, 2024

Conversation

ZhongJinHacker
Copy link
Contributor

Purpose of the pull request

This pull request to fix #15688 , when path is null or empty, it will cause serverhost is null, it is danger

please check the issue out for details

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(or)

If your pull request contain incompatible change, you should also add it to docs/docs/en/guide/upgrede/incompatible.md

caishunfeng
caishunfeng previously approved these changes Mar 10, 2024
Copy link
Contributor

@caishunfeng caishunfeng left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov-commenter
Copy link

codecov-commenter commented Mar 11, 2024

Codecov Report

Attention: Patch coverage is 55.55556% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 38.96%. Comparing base (c61b81e) to head (b7efb68).

❗ Current head b7efb68 differs from pull request most recent head 739d72a. Consider uploading reports for the commit 739d72a to get more accurate results

Files Patch % Lines
...r/server/master/registry/MasterRegistryClient.java 55.55% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##                dev   #15689   +/-   ##
=========================================
  Coverage     38.96%   38.96%           
  Complexity     4840     4840           
=========================================
  Files          1316     1316           
  Lines         45010    45011    +1     
  Branches       4818     4818           
=========================================
+ Hits          17539    17540    +1     
  Misses        25575    25575           
  Partials       1896     1896           

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

Copy link
Member

@SbloodyS SbloodyS left a comment

Choose a reason for hiding this comment

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

+1

@SbloodyS SbloodyS added this to the 3.2.2 milestone Mar 11, 2024
Copy link
Member

@SbloodyS SbloodyS left a comment

Choose a reason for hiding this comment

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

Please use English in commit message.

@ZhongJinHacker
Copy link
Contributor Author

Please use English in commit message.

fixed

Copy link

sonarcloud bot commented Mar 11, 2024

@SbloodyS SbloodyS merged commit 738da1c into apache:dev Mar 11, 2024
56 checks passed
@ZhongJinHacker ZhongJinHacker deleted the dev_240307 branch March 14, 2024 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] [Master] Potential danger in the event of a worker failover
5 participants