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】修复路由规则配置不正确的情况下,有可能出现的npe #1080

Merged
merged 1 commit into from
Feb 1, 2023

Conversation

provenceee
Copy link
Collaborator

【修复issue】 #1079

【修改内容】解析路由规则后,移除不合法的规则

【用例描述】不需要修改用例

【自测情况】1、新增非法路由规则,2、解析规则不再报空指针

【影响范围】1、对用户的使用没有影响

@provenceee provenceee added kind/bug Something isn't working area/plugin Issues or PRs releated to sermant plugin service labels Jan 30, 2023
@provenceee provenceee self-assigned this Jan 30, 2023
@codecov
Copy link

codecov bot commented Jan 30, 2023

Codecov Report

Base: 45.65% // Head: 45.67% // Increases project coverage by +0.02% 🎉

Coverage data is based on head (e2b01ad) compared to base (315f7d0).
Patch coverage: 3.84% of modified lines in pull request are covered.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #1080      +/-   ##
=============================================
+ Coverage      45.65%   45.67%   +0.02%     
- Complexity      2989     3028      +39     
=============================================
  Files            689      700      +11     
  Lines          15163    15357     +194     
  Branches        1698     1702       +4     
=============================================
+ Hits            6923     7015      +92     
- Misses          7377     7470      +93     
- Partials         863      872       +9     
Flag Coverage Δ
unittests 45.67% <3.84%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...ant/router/config/handler/RouterConfigHandler.java 7.40% <0.00%> (+0.95%) ⬆️
...nt/router/config/handler/ServiceConfigHandler.java 9.52% <0.00%> (+1.83%) ⬆️
...eicloud/sermant/router/config/utils/RuleUtils.java 50.66% <5.26%> (-6.16%) ⬇️
...m/huawei/dynamic/config/DynamicConfigListener.java 0.00% <0.00%> (-100.00%) ⬇️
...y/interceptors/health/EurekaHealthInterceptor.java 58.82% <0.00%> (-5.89%) ⬇️
...mplement/service/tracing/sender/TracingSender.java 63.49% <0.00%> (-4.77%) ⬇️
...ud/loadbalancer/cache/RibbonLoadbalancerCache.java 43.28% <0.00%> (-2.99%) ⬇️
...om/huaweicloud/sermant/core/utils/StringUtils.java 16.27% <0.00%> (-0.39%) ⬇️
...ud/sermant/implement/service/send/NettyClient.java 1.88% <0.00%> (-0.04%) ⬇️
...ant/core/service/visibility/entity/ServerInfo.java 0.00% <0.00%> (ø)
... and 19 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

lilai23
lilai23 previously approved these changes Jan 30, 2023
hanbingleixue
hanbingleixue previously approved these changes Jan 30, 2023
hanbingleixue
hanbingleixue previously approved these changes Jan 30, 2023
@robotLJW
Copy link
Collaborator

robotLJW commented Feb 1, 2023

@hanbingleixue 这个PR记得的合入1.0.x 中bugfix

Copy link
Collaborator

@robotLJW robotLJW left a comment

Choose a reason for hiding this comment

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

/lgtm

@robotLJW robotLJW merged commit 7413db7 into sermant-io:develop Feb 1, 2023
@provenceee provenceee deleted the fix-npe branch March 25, 2023 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/plugin Issues or PRs releated to sermant plugin service kind/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants