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 #5921] Support domain resolution to obtain the controller address #5922

Merged
merged 4 commits into from
Jan 28, 2023

Conversation

RongtongJin
Copy link
Contributor

Make sure set the target branch to develop

What is the purpose of the change

Close #5921
Support domain resolution to obtain the controller address

Brief changelog

Support domain resolution to obtain the controller address

Verifying this change

XXXX

Follow this checklist to help us incorporate your contribution quickly and easily. Notice, it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR.

  • Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
  • Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test(over 80% coverage) to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
  • Run mvn -B clean apache-rat:check findbugs:findbugs checkstyle:checkstyle to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test to make sure integration-test pass.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

Copy link
Member

@mxsm mxsm left a comment

Choose a reason for hiding this comment

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

Test case not pass, Please check

@codecov-commenter
Copy link

codecov-commenter commented Jan 24, 2023

Codecov Report

Merging #5922 (17681b9) into develop (a961a9b) will increase coverage by 0.01%.
The diff coverage is 50.00%.

@@              Coverage Diff              @@
##             develop    #5922      +/-   ##
=============================================
+ Coverage      43.36%   43.38%   +0.01%     
- Complexity      8810     8815       +5     
=============================================
  Files           1090     1090              
  Lines          76407    76416       +9     
  Branches        9981     9982       +1     
=============================================
+ Hits           33135    33150      +15     
+ Misses         39126    39120       -6     
  Partials        4146     4146              
Impacted Files Coverage Δ
...org/apache/rocketmq/broker/out/BrokerOuterAPI.java 16.55% <0.00%> (ø)
.../java/org/apache/rocketmq/common/BrokerConfig.java 27.92% <25.00%> (-0.02%) ⬇️
...he/rocketmq/broker/controller/ReplicasManager.java 43.44% <66.66%> (+0.34%) ⬆️
...q/namesrv/routeinfo/BrokerHousekeepingService.java 70.00% <0.00%> (-10.00%) ⬇️
...ocketmq/tieredstore/container/TieredIndexFile.java 68.10% <0.00%> (-3.88%) ⬇️
...controller/impl/DefaultBrokerHeartbeatManager.java 82.27% <0.00%> (-3.80%) ⬇️
...he/rocketmq/client/trace/AsyncTraceDispatcher.java 82.21% <0.00%> (-2.41%) ⬇️
...apache/rocketmq/store/queue/BatchConsumeQueue.java 69.67% <0.00%> (-0.55%) ⬇️
...cketmq/store/ha/autoswitch/AutoSwitchHAClient.java 76.17% <0.00%> (-0.37%) ⬇️
...e/rocketmq/namesrv/routeinfo/RouteInfoManager.java 63.43% <0.00%> (-0.33%) ⬇️
... and 16 more

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

@RongtongJin
Copy link
Contributor Author

Test case not pass, Please check

done

mxsm
mxsm previously approved these changes Jan 25, 2023
Copy link
Member

@mxsm mxsm left a comment

Choose a reason for hiding this comment

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

LGTM~

@RongtongJin
Copy link
Contributor Author

RongtongJin commented Jan 25, 2023

Hi @Oliverwqcwrw, I have fixed the typo error, Plz check again.

@lizhiboo lizhiboo merged commit 5a43f1d into apache:develop Jan 28, 2023
RongtongJin added a commit to RongtongJin/rocketmq that referenced this pull request Jan 28, 2023
MatrixHB pushed a commit that referenced this pull request Jan 30, 2023
…frequently causing thread blocking when the network partition (#5930)

* Fix the issue that broker send heartbeat to controller frequently causing thread blocking when the network partition

* Fix the ReplicasManagerTest can not pass

* Reslove conflict with #5922

* Fix code style

* Rename isAddressCanConnect to isAddressReachable

* Rename isAddressCanConnect to isAddressReachable
RongtongJin added a commit to RongtongJin/rocketmq that referenced this pull request Jan 30, 2023
…r address (apache#5922)

* Support domain resolution to obtain the controller address

* Remove useless import

* Fix testLookupAddressByDomain can not pass

* Fix typo error
RongtongJin added a commit to RongtongJin/rocketmq that referenced this pull request Jan 30, 2023
…oller frequently causing thread blocking when the network partition (apache#5930)

* Fix the issue that broker send heartbeat to controller frequently causing thread blocking when the network partition

* Fix the ReplicasManagerTest can not pass

* Reslove conflict with apache#5922

* Fix code style

* Rename isAddressCanConnect to isAddressReachable

* Rename isAddressCanConnect to isAddressReachable
@RongtongJin RongtongJin added the module/ha high availably related label Feb 14, 2023
drpmma pushed a commit that referenced this pull request Feb 21, 2023
…ess (#5922)

* Support domain resolution to obtain the controller address

* Remove useless import

* Fix testLookupAddressByDomain can not pass

* Fix typo error
drpmma pushed a commit that referenced this pull request Feb 21, 2023
…frequently causing thread blocking when the network partition (#5930)

* Fix the issue that broker send heartbeat to controller frequently causing thread blocking when the network partition

* Fix the ReplicasManagerTest can not pass

* Reslove conflict with #5922

* Fix code style

* Rename isAddressCanConnect to isAddressReachable

* Rename isAddressCanConnect to isAddressReachable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/ha high availably related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support domain resolution to obtain the controller address
6 participants